From 4347915c167599bd4a07b251fe024c2d36115aa1 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 30 Sep 1996 15:39:18 +0000 Subject: [PATCH] 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(-) diff --git a/lib/libc/stdio/perror.c b/lib/libc/stdio/perror.c index 57a73fc9f714..91a7dee8b262 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++;