summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-05-06 20:50:43 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-05-06 20:50:43 +0000
commit944cc48ba834c60fe3b6709c3ca62dfb73bd9cb7 (patch)
tree3b4ba09b0a44096799bd30dcd512422bc6e77c32 /bin
parent87ef9f2ca4c9197dfe5a5fbd4440c958182cad7f (diff)
spell NULL as NULL
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/fmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c
index 1b7f7e38e04..fc1fa4df573 100644
--- a/bin/ps/fmt.c
+++ b/bin/ps/fmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fmt.c,v 1.11 2013/11/11 23:07:15 deraadt Exp $ */
+/* $OpenBSD: fmt.c,v 1.12 2014/05/06 20:50:42 tedu Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -56,7 +56,7 @@ fmt_puts(const char *s, int *leftp)
while (len > newmaxlen)
newmaxlen *= 2;
nv = realloc(v, newmaxlen);
- if (nv == 0) {
+ if (nv == NULL) {
free(v);
v = NULL;
maxlen = 0;