mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +02:00
Fix another bug reported by Wipro: "...at line 89 in function xlungetc , file xlio.c
'fptr', can take a NULL value. It is being derefed directly or through its aliases at: '(((fptr- >n_info).n_xstream).xs_savech)'"
This commit is contained in:
parent
a267f86b2e
commit
c159d469d6
@ -72,7 +72,7 @@ void xlungetc(LVAL fptr, int ch)
|
||||
|
||||
/* check for ungetc from nil */
|
||||
if (fptr == NIL)
|
||||
;
|
||||
; //ANSWER-ME: Return? "else if"?
|
||||
|
||||
/* otherwise, check for ungetc to a stream */
|
||||
if (ustreamp(fptr)) {
|
||||
@ -85,7 +85,7 @@ void xlungetc(LVAL fptr, int ch)
|
||||
}
|
||||
|
||||
/* otherwise, it must be a file */
|
||||
else
|
||||
else if (fptr)
|
||||
setsavech(fptr,ch);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user