]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - test.c
Converting a literal to null pointer produces a warning
[xonotic/gmqcc.git] / test.c
diff --git a/test.c b/test.c
index 6ce99964b24f408b5fd482a2ddff7eb83d4d7ce9..370861ed9f1becd34df5a5a495a72024d3d8083e 100644 (file)
--- a/test.c
+++ b/test.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012, 2013
+ * Copyright (C) 2012, 2013, 2014
  *     Dale Weiler
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -85,7 +85,7 @@ static fs_file_t **task_popen(const char *command, const char *mode) {
             while (*line != '\0' && *line != ' ' &&
                    *line != '\t' && *line != '\n') line++;
         }
-        vec_push(argv, '\0');
+        vec_push(argv, (char *)0);
     }