]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
manpage: document and explain __FUNC__ and __NULL__
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
old mode 100644 (file)
new mode 100755 (executable)
index d89ed27..0a22b1b
--- a/main.c
+++ b/main.c
@@ -765,6 +765,7 @@ srcdone:
         }
 
         ftepp_finish(ftepp);
+        ftepp = NULL;
         if (!OPTS_OPTION_BOOL(OPTION_PP_ONLY)) {
             if (!parser_finish(parser, OPTS_OPTION_STR(OPTION_OUTPUT))) {
                 retval = 1;
@@ -786,7 +787,8 @@ srcdone:
 
 cleanup:
     util_debug("COM", "cleaning ...\n");
-    ftepp_finish(ftepp);
+    if (ftepp)
+        ftepp_finish(ftepp);
     con_close();
     vec_free(items);
     vec_free(ppems);