aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-04-18 20:15:15 +0300
committerArnold D. Robbins <arnold@skeeve.com>2019-04-18 20:15:15 +0300
commit9abeda33e7ce111a266d5e3ec4dafe65c26d5cd0 (patch)
tree68694f00d403866a7d64c606b93db56155aaf56f /awkgram.c
parent33218616b4987c7afd860d0b3f4dad9cdb703547 (diff)
downloadegawk-9abeda33e7ce111a266d5e3ec4dafe65c26d5cd0.tar.gz
egawk-9abeda33e7ce111a266d5e3ec4dafe65c26d5cd0.tar.bz2
egawk-9abeda33e7ce111a266d5e3ec4dafe65c26d5cd0.zip
Fix core dump upon syntax error.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/awkgram.c b/awkgram.c
index a568f5da..150cfdc9 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -198,7 +198,7 @@ static int continue_allowed; /* kludge for continue */
static char *tokstart = NULL;
static char *tok = NULL;
static char *tokend;
-static int errcount = 0;
+int errcount = 0;
extern char *source;
extern int sourceline;