aboutsummaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c3
1 files changed, 2 insertions, 1 deletions
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