summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2014-04-14 21:09:47 +0000
committereadler <eadler@FreeBSD.org>2014-04-14 21:09:47 +0000
commitc4f70eafe77c2186fa18d67b103886c421d101dd (patch)
tree1835607cea637979cf45ef7f3fe7634802277f76
parentbc93c01d608095e8a6997bd5b0dab31ad5f153d5 (diff)
downloadFreeBSD-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.c2
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;
}
OpenPOWER on IntegriCloud