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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264475
@ -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 New Issue
Block a user