summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>1996-09-30 15:39:18 +0000
committerWolfram Schneider <wosch@FreeBSD.org>1996-09-30 15:39:18 +0000
commit4347915c167599bd4a07b251fe024c2d36115aa1 (patch)
tree9b8ef107ff46ee9b327cd26a64c8c468038f3710 /lib/libc/stdio
parentef3b9af643b907ddb88faac5cd0b4ac7c2283509 (diff)
Notes
Diffstat (limited to 'lib/libc/stdio')
-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 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++;