aboutsummaryrefslogtreecommitdiff
path: root/sbin/bsdlabel/bsdlabel.c
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-18 07:40:36 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-18 07:40:36 +0000
commitfb6a35935ae8d2a2b6d5023979bc8f997bf54efa (patch)
tree2aab2ff62838b39ca6769da18ae0cb4442ea1aa8 /sbin/bsdlabel/bsdlabel.c
parent3e41d09d08f5bfa2fc1386241f334b865d6da085 (diff)
downloadsrc-fb6a35935ae8d2a2b6d5023979bc8f997bf54efa.tar.gz
src-fb6a35935ae8d2a2b6d5023979bc8f997bf54efa.zip
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.
Notes
Notes: svn path=/head/; revision=298193
Diffstat (limited to 'sbin/bsdlabel/bsdlabel.c')
-rw-r--r--sbin/bsdlabel/bsdlabel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c
index b99c27918594..072c4cfa0884 100644
--- a/sbin/bsdlabel/bsdlabel.c
+++ b/sbin/bsdlabel/bsdlabel.c
@@ -781,7 +781,7 @@ getasciilabel(FILE *f, struct disklabel *lp)
lp->d_sbsize = 0; /* XXX */
while (fgets(line, sizeof(line) - 1, f)) {
lineno++;
- if ((cp = strchr(line,'\n')) != 0)
+ if ((cp = strchr(line,'\n')) != NULL)
*cp = '\0';
cp = skip(line);
if (cp == NULL)