From df70961c5a007cd5492e1494f0a05a0321d10379 Mon Sep 17 00:00:00 2001 From: wosch Date: Mon, 30 Sep 1996 15:39:18 +0000 Subject: perror () does not prepend ": " for the non-NULL argument "". close PR 1492 Submitted by: Kent Vander Velden Reviewed by: Submitted by: Obtained from: --- lib/libc/stdio/perror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/stdio/perror.c') diff --git a/lib/libc/stdio/perror.c b/lib/libc/stdio/perror.c index 57a73fc..91a7dee 100644 --- a/lib/libc/stdio/perror.c +++ b/lib/libc/stdio/perror.c @@ -50,7 +50,7 @@ perror(s) struct iovec iov[4]; v = iov; - if (s && *s) { + if (s != NULL) { v->iov_base = (char *)s; v->iov_len = strlen(s); v++; -- cgit v1.1