No longer fail silently if an empty argument to "-D" was given
This commit is contained in:
parent
f5a2644eb8
commit
f7f8ae2bd4
|
@ -193,7 +193,7 @@ static int _main_add_define(C99Prefs * prefs, char * define)
|
|||
fprintf(stderr, "DEBUG: %s(\"%s\")\n", __func__, define);
|
||||
#endif
|
||||
if(strlen(define) == 0)
|
||||
return 1;
|
||||
return _usage();
|
||||
value = strtok(define, "=");
|
||||
if((p = realloc(prefs->defines, sizeof(*p) * (prefs->defines_cnt + 1)))
|
||||
== NULL)
|
||||
|
|
Loading…
Reference in New Issue
Block a user