diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/ParseFile.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/util/ParseFile.c b/src/util/ParseFile.c index d6d5a97d..2e395580 100644 --- a/src/util/ParseFile.c +++ b/src/util/ParseFile.c @@ -89,11 +89,19 @@ int ParseFile(FILE *ifp, } /* End of line */ - if (c == '\n') { + if (c == '\n') + { + if(intoken) + { + fprintf(stderr, "Parse error at line %d. No value supplied.\n", lineno); + intoken = 0; + } + lineno ++; #ifdef DEBUG printf ("LINE %d\n",lineno); #endif + } /* Token character */ |