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
@ -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