]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - test.c
Constant folding for strings
[xonotic/gmqcc.git] / test.c
diff --git a/test.c b/test.c
index 6d8e9ad7192bf08ff2e583c5b3be9c343d57e37b..0e1a466074abf2440481890b55200f1cadf094f5 100644 (file)
--- a/test.c
+++ b/test.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012, 2013, 2014
+ * Copyright (C) 2012, 2013, 2014, 2015
  *     Dale Weiler
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -734,6 +734,8 @@ static bool task_propagate(const char *curdir, size_t *pad, const char *defs) {
                 const char      *qcflags = NULL;
                 task_t           task;
 
+                memset(&task, 0, sizeof(task));
+
                 found ++;
                 if (!tmpl) {
                     con_err("error compiling task template: %s\n", files->d_name);