]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
If parser_finish fails, the exit-value must also indicate an error
authorWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 30 Oct 2012 20:20:06 +0000 (21:20 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 30 Oct 2012 20:20:06 +0000 (21:20 +0100)
main.c

diff --git a/main.c b/main.c
index ac3b1f556e01ef848721531dc7fb21cfe28a7a70..0ea96c447a710a939e2f6a33bac4a893f1f9a43c 100644 (file)
--- 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;