Commit 227e55ec authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix error checking of debug statements in configuration file.

parent a28c9e3a
......@@ -683,7 +683,7 @@ parse_option(int c, gnc_t gnc, void *closure, char *token)
} else if(strcmp(token, "debug") == 0) {
int d;
c = getint(c, &d, gnc, closure);
if(d < 0)
if(c < -1 || d < 0)
goto error;
debug = d;
} else if(strcmp(token, "diversity") == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment