aboutsummaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-02-16 21:17:02 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-02-16 21:17:02 +0200
commit478829a0f22753b6aa6e8a2227167370a5cf5a37 (patch)
treec12044c1f5e541c6290c88292f1194cd199f6098 /msg.c
parentdb17aa722cd00f3cf5b7660c3badd3b4b29a648c (diff)
downloadegawk-478829a0f22753b6aa6e8a2227167370a5cf5a37.tar.gz
egawk-478829a0f22753b6aa6e8a2227167370a5cf5a37.tar.bz2
egawk-478829a0f22753b6aa6e8a2227167370a5cf5a37.zip
Fix line numbers in lint warnings.
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