summaryrefslogtreecommitdiff
path: root/src/linux/err.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/err.c')
-rw-r--r--src/linux/err.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linux/err.c b/src/linux/err.c
index abc26806..c291136d 100644
--- 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);
}