diff options
author | eadler <eadler@FreeBSD.org> | 2014-04-14 21:09:47 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2014-04-14 21:09:47 +0000 |
commit | c4f70eafe77c2186fa18d67b103886c421d101dd (patch) | |
tree | 1835607cea637979cf45ef7f3fe7634802277f76 | |
parent | bc93c01d608095e8a6997bd5b0dab31ad5f153d5 (diff) | |
download | FreeBSD-src-c4f70eafe77c2186fa18d67b103886c421d101dd.zip FreeBSD-src-c4f70eafe77c2186fa18d67b103886c421d101dd.tar.gz |
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
-rw-r--r-- | usr.bin/units/units.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/units/units.c b/usr.bin/units/units.c index c2141f6..70bd9ec 100644 --- a/usr.bin/units/units.c +++ b/usr.bin/units/units.c @@ -245,7 +245,7 @@ addsubunit(char *product[], char *toadd) return 1; } if (!*ptr) - *(ptr + 1) = 0; + *(ptr + 1) = NULL; *ptr = dupstr(toadd); return 0; } |