]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
these can be const now
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
index d89ed27b043efcb62d9f350f34ff385d67ddd456..60780efe1cb5db4eeb6455c24ad55e161f5194f0 100644 (file)
--- a/main.c
+++ b/main.c
@@ -643,9 +643,6 @@ int main(int argc, char **argv) {
         }
     }
 
-    if (OPTS_FLAG(TRUE_EMPTY_STRINGS))
-        type_not_instr[TYPE_STRING] = INSTR_NOT_F;
-
     util_debug("COM", "starting ...\n");
 
     /* add macros */
@@ -765,6 +762,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 +784,8 @@ srcdone:
 
 cleanup:
     util_debug("COM", "cleaning ...\n");
-    ftepp_finish(ftepp);
+    if (ftepp)
+        ftepp_finish(ftepp);
     con_close();
     vec_free(items);
     vec_free(ppems);