]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - test.c
More function flatening
[xonotic/gmqcc.git] / test.c
diff --git a/test.c b/test.c
index 631f5e3fb0b942a2024f1a1ab4d008a453d5fc3a..23106333a225e3bc7068b5ec13d2d841f89dcde4 100644 (file)
--- a/test.c
+++ b/test.c
@@ -315,7 +315,7 @@ bool task_template_generate(task_template_t *tmpl, char tag, const char *file, s
     if (strchr(value, '\n'))
         *strrchr(value, '\n')='\0';
     else /* cppcheck: possible nullpointer dereference */
-        abort();
+        exit(EXIT_FAILURE);
 
     /*
      * Now allocate and set the actual value for the specific tag. Which
@@ -428,7 +428,7 @@ bool task_template_parse(const char *file, task_template_t *tmpl, FILE *fp, size
                 if (strrchr(value, '\n'))
                     *strrchr(value, '\n')='\0';
                 else /* cppcheck: possible null pointer dereference */
-                    abort();
+                    exit(EXIT_FAILURE);
 
                 vec_push(tmpl->comparematch, util_strdup(value));