projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f80afc
)
handle null arguments to legacy bsd err.h functions
author
Rich Felker
<dalias@aerifal.cx>
Thu, 16 Aug 2012 02:35:02 +0000
(22:35 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 16 Aug 2012 02:35:02 +0000
(22:35 -0400)
src/linux/err.c
patch
|
blob
|
history
diff --git
a/src/linux/err.c
b/src/linux/err.c
index abc26806c344229613a2cd86e1eea9d83042d802..c291136dec3af739d5c46e8604c91ca6bc976f65 100644
(file)
--- a/
src/linux/err.c
+++ b/
src/linux/err.c
@@
-5,13
+5,13
@@
void vwarn(const char *fmt, va_list ap)
{
- vfprintf(stderr, fmt, ap);
+
if (fmt)
vfprintf(stderr, fmt, ap);
perror("");
}
void vwarnx(const char *fmt, va_list ap)
{
- vfprintf(stderr, fmt, ap);
+
if (fmt)
vfprintf(stderr, fmt, ap);
putc('\n', stderr);
}