diff options
author | araujo <araujo@FreeBSD.org> | 2016-04-18 14:08:35 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-04-18 14:08:35 +0000 |
commit | 3ed503ef4c0407af39685611fc218f503b26e57f (patch) | |
tree | 6449c8de2a401c1e47769930fd6db4dcb154a63b /sbin/newfs | |
parent | 60b9a1732824c56bf505a3a813256b4bc8034845 (diff) | |
download | FreeBSD-src-3ed503ef4c0407af39685611fc218f503b26e57f.zip FreeBSD-src-3ed503ef4c0407af39685611fc218f503b26e57f.tar.gz |
Use NULL instead of 0 for pointers.
strchr(3) will return NULL if the character does not appear in the
string.
MFC after: 2 weeks.
Diffstat (limited to 'sbin/newfs')
-rw-r--r-- | sbin/newfs/newfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index 1f8e4d3..0dbb786 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -306,7 +306,7 @@ main(int argc, char *argv[]) if (!special[0]) err(1, "empty file/special name"); cp = strrchr(special, '/'); - if (cp == 0) { + if (cp == NULL) { /* * No path prefix; try prefixing _PATH_DEV. */ |