mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 17:17:19 -04:00
Use NULL instead of 0 for pointers.
strchr(3) will return NULL if the character does not appear in the string. MFC after: 2 weeks.
This commit is contained in:
parent
3e41d09d08
commit
fb6a35935a
1 changed files with 1 additions and 1 deletions
|
|
@ -781,7 +781,7 @@ getasciilabel(FILE *f, struct disklabel *lp)
|
|||
lp->d_sbsize = 0; /* XXX */
|
||||
while (fgets(line, sizeof(line) - 1, f)) {
|
||||
lineno++;
|
||||
if ((cp = strchr(line,'\n')) != 0)
|
||||
if ((cp = strchr(line,'\n')) != NULL)
|
||||
*cp = '\0';
|
||||
cp = skip(line);
|
||||
if (cp == NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue