mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
units(1): don't compare pointers with 0
For better readability, don't compare pointers with 0 or assign 0 to them. Use NULL instead. Inspired by: DragonflyBSD
This commit is contained in:
parent
dc8c916dcd
commit
956c78c92b
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ addsubunit(char *product[], char *toadd)
|
|||
return 1;
|
||||
}
|
||||
if (!*ptr)
|
||||
*(ptr + 1) = 0;
|
||||
*(ptr + 1) = NULL;
|
||||
*ptr = dupstr(toadd);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue