aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/kldconfig
diff options
context:
space:
mode:
authorJohan Karlsson <johan@FreeBSD.org>2003-04-23 20:33:57 +0000
committerJohan Karlsson <johan@FreeBSD.org>2003-04-23 20:33:57 +0000
commit7f107457719fe64d9da44335a310f980f122e286 (patch)
tree1b4fc9ce9937cf768b06561c18ea95949c37e2a7 /sbin/kldconfig
parent7d2101965fdc9a44a61949b3b993d604df337ea5 (diff)
downloadsrc-7f107457719fe64d9da44335a310f980f122e286.tar.gz
src-7f107457719fe64d9da44335a310f980f122e286.zip
style(9): use NULL when assigning/comparing a char *,
consitently compare fileid with 0 using == and !=. Reviewed by: silence on @audit
Notes
Notes: svn path=/head/; revision=113936
Diffstat (limited to 'sbin/kldconfig')
-rw-r--r--sbin/kldconfig/kldconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/kldconfig/kldconfig.c b/sbin/kldconfig/kldconfig.c
index bd4015df6b10..21f4d1c390dd 100644
--- a/sbin/kldconfig/kldconfig.c
+++ b/sbin/kldconfig/kldconfig.c
@@ -142,7 +142,7 @@ setpath(struct pathhead *pathq)
if (sysctl(mib, miblen, NULL, NULL, newpath, strlen(newpath)+1) == -1)
err(1, "setting path: sysctl(%s)", pathctl);
- if (modpath)
+ if (modpath != NULL)
free(modpath);
modpath = newpath;
}