aboutsummaryrefslogtreecommitdiff
path: root/sbin/growfs/growfs.c
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-18 14:08:35 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-18 14:08:35 +0000
commitedf6b683e8158c697e8a00faa986c2d111108d06 (patch)
tree6449c8de2a401c1e47769930fd6db4dcb154a63b /sbin/growfs/growfs.c
parentc0e5e7f3d2e1bac7ada43b35843e3a018777854e (diff)
downloadsrc-edf6b683e8158c697e8a00faa986c2d111108d06.tar.gz
src-edf6b683e8158c697e8a00faa986c2d111108d06.zip
Notes
Diffstat (limited to 'sbin/growfs/growfs.c')
-rw-r--r--sbin/growfs/growfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index 7b85b25329b8..5d13a3c82fc0 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -1331,7 +1331,7 @@ getdev(const char *name)
return (name);
cp = strrchr(name, '/');
- if (cp == 0) {
+ if (cp == NULL) {
snprintf(device, sizeof(device), "%s%s", _PATH_DEV, name);
if (is_dev(device))
return (device);