diff options
author | johan <johan@FreeBSD.org> | 2003-04-23 20:33:57 +0000 |
---|---|---|
committer | johan <johan@FreeBSD.org> | 2003-04-23 20:33:57 +0000 |
commit | f0e2ab20a0f8aec13b4380cbf6075819af64c9a7 (patch) | |
tree | 1b4fc9ce9937cf768b06561c18ea95949c37e2a7 /sbin/kldconfig | |
parent | 4c6fe8967cf97638f57dc258d70e366088605a53 (diff) | |
download | FreeBSD-src-f0e2ab20a0f8aec13b4380cbf6075819af64c9a7.zip FreeBSD-src-f0e2ab20a0f8aec13b4380cbf6075819af64c9a7.tar.gz |
style(9): use NULL when assigning/comparing a char *,
consitently compare fileid with 0 using == and !=.
Reviewed by: silence on @audit
Diffstat (limited to 'sbin/kldconfig')
-rw-r--r-- | sbin/kldconfig/kldconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/kldconfig/kldconfig.c b/sbin/kldconfig/kldconfig.c index bd4015d..21f4d1c 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; } |