No longer fail silently if an empty argument to "-D" was given

This commit is contained in:
Pierre Pronchery 2011-05-04 15:56:41 +00:00
parent f5a2644eb8
commit f7f8ae2bd4

View File

@ -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)