From 478829a0f22753b6aa6e8a2227167370a5cf5a37 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 16 Feb 2011 21:17:02 +0200 Subject: Fix line numbers in lint warnings. --- msg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'msg.c') diff --git a/msg.c b/msg.c index a75396f5..84a4e5cd 100644 --- a/msg.c +++ b/msg.c @@ -55,7 +55,8 @@ err(const char *s, const char *emsg, va_list argp) srcfile = NULL; } #endif /* GAWKDEBUG */ - if (sourceline != 0) { + + if (sourceline > 0) { if (source != NULL) (void) fprintf(stderr, "%s:", source); else -- cgit v1.2.3