summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/perror.c
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-09-30 15:39:18 +0000
committerwosch <wosch@FreeBSD.org>1996-09-30 15:39:18 +0000
commitdf70961c5a007cd5492e1494f0a05a0321d10379 (patch)
tree9b8ef107ff46ee9b327cd26a64c8c468038f3710 /lib/libc/stdio/perror.c
parent78c973fbe3cbe95a5e852adbe15e6cfa2cc5fcc9 (diff)
downloadFreeBSD-src-df70961c5a007cd5492e1494f0a05a0321d10379.zip
FreeBSD-src-df70961c5a007cd5492e1494f0a05a0321d10379.tar.gz
perror () does not prepend ": " for the non-NULL argument "". close PR 1492
Submitted by: Kent Vander Velden <graphix@iastate.edu> Reviewed by: Submitted by: Obtained from:
Diffstat (limited to 'lib/libc/stdio/perror.c')
-rw-r--r--lib/libc/stdio/perror.c2
1 files changed, 1 insertions, 1 deletions
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++;
OpenPOWER on IntegriCloud