mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Since n is int now, sanity check must be n <= 0, not simple n == 0
This commit is contained in:
parent
cadce41fec
commit
06b47700ae
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ fgets(buf, n, fp)
|
|||
register char *s;
|
||||
register unsigned char *p, *t;
|
||||
|
||||
if (n == 0) /* sanity check */
|
||||
if (n <= 0) /* sanity check */
|
||||
return (NULL);
|
||||
|
||||
#ifdef _THREAD_SAFE
|
||||
|
|
|
|||
Loading…
Reference in a new issue