aboutsummaryrefslogtreecommitdiffstats
path: root/report.c
diff options
context:
space:
mode:
Diffstat (limited to 'report.c')
-rw-r--r--report.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/report.c b/report.c
index ee7d7594..7db42edc 100644
--- a/report.c
+++ b/report.c
@@ -170,7 +170,7 @@ error (status, errnum, message, va_alist)
# endif
priority = status? LOG_ALERT : errnum? LOG_ERR : LOG_INFO;
- if (errnum)
+ if (errnum > 0)
{
char *msg = alloca (strlen (message) + 5);