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:
Eitan Adler 2014-04-14 21:09:47 +00:00
parent dc8c916dcd
commit 956c78c92b

View File

@ -245,7 +245,7 @@ addsubunit(char *product[], char *toadd)
return 1;
}
if (!*ptr)
*(ptr + 1) = 0;
*(ptr + 1) = NULL;
*ptr = dupstr(toadd);
return 0;
}