From: Wolfgang (Blub) Bumiller Date: Tue, 30 Oct 2012 20:20:06 +0000 (+0100) Subject: If parser_finish fails, the exit-value must also indicate an error X-Git-Tag: 0.1-rc1~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0fedee831236c3bc307a9f526d15ebd6a9296c92;p=xonotic%2Fgmqcc.git If parser_finish fails, the exit-value must also indicate an error --- diff --git a/main.c b/main.c index ac3b1f5..0ea96c4 100644 --- a/main.c +++ b/main.c @@ -460,7 +460,10 @@ int main(int argc, char **argv) { } } - parser_finish(opts_output); + if (!parser_finish(opts_output)) { + retval = 1; + goto cleanup; + } } else { FILE *src;