]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
Technically GCC was wrong here, since opts_ini_parse is guranteed to change error.
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
index bcd91599e730bcc063c7b0f7f734325fef403057..feb8aa3886ab128491f9e9af401beea9775e7ba2 100644 (file)
--- a/main.c
+++ b/main.c
@@ -697,9 +697,6 @@ int main(int argc, char **argv) {
         mem_d(line);
     }
 
-    if (retval)
-        goto cleanup;
-
     if (vec_size(items)) {
         if (!OPTS_OPTION_BOOL(OPTION_QUIET) &&
             !OPTS_OPTION_BOOL(OPTION_PP_ONLY))
@@ -791,7 +788,7 @@ cleanup:
     vec_free(ppems);
 
     if (!OPTS_OPTION_BOOL(OPTION_PP_ONLY))
-        parser_cleanup(parser);
+        if(parser) parser_cleanup(parser);
     if (opts_output_free)
         mem_d(OPTS_OPTION_STR(OPTION_OUTPUT));
     if (operators_free)