]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - test.c
Fixing a shadowing in ir.c
[xonotic/gmqcc.git] / test.c
diff --git a/test.c b/test.c
index 65002c9e362d9ef73b9172e71921923190420d8d..ed66f9d6c9337fcfa3dcb2e79eef34d545a60cd0 100644 (file)
--- a/test.c
+++ b/test.c
@@ -514,8 +514,8 @@ task_template_t *task_template_compile(const char *file, const char *dir) {
         goto success;
     } else if (!strcmp(template->proceduretype, "-execute")) {
         if (!template->executeflags) {
-            con_err("template compile error: %s missing `E:` tag (use `$null` for exclude)\n", file);
-            goto failure;
+            /* default to $null */
+            template->executeflags = util_strdup("$null");
         }
         if (!template->comparematch) {
             con_err("template compile error: %s missing `M:` tag (use `$null` for exclude)\n", file);