artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b59a987
)
spell NULL as NULL
author
tedu
<tedu@openbsd.org>
Tue, 6 May 2014 20:50:42 +0000
(20:50 +0000)
committer
tedu
<tedu@openbsd.org>
Tue, 6 May 2014 20:50:42 +0000
(20:50 +0000)
bin/ps/fmt.c
patch
|
blob
|
history
diff --git
a/bin/ps/fmt.c
b/bin/ps/fmt.c
index
1b7f7e3
..
fc1fa4d
100644
(file)
--- a/
bin/ps/fmt.c
+++ b/
bin/ps/fmt.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: fmt.c,v 1.1
1 2013/11/11 23:07:15 deraadt Exp $
*/
+/* $OpenBSD: fmt.c,v 1.1
2 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;