winemp3.acm: Ensure null check before dereference.
This commit is contained in:
parent
d7697bd55e
commit
cfdd3349f8
|
@ -122,10 +122,6 @@ static int read_buf_byte(struct mpstr *mp)
|
||||||
while(pos >= mp->tail->size) {
|
while(pos >= mp->tail->size) {
|
||||||
remove_buf(mp);
|
remove_buf(mp);
|
||||||
pos = mp->tail->pos;
|
pos = mp->tail->pos;
|
||||||
if(!mp->tail) {
|
|
||||||
fprintf(stderr,"Fatal error!\n");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
b = mp->tail->pnt[pos];
|
b = mp->tail->pnt[pos];
|
||||||
|
|
Loading…
Reference in New Issue