]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Converting a literal to null pointer produces a warning
authorDale Weiler <weilercdale@gmail.com>
Fri, 17 Oct 2014 02:55:16 +0000 (22:55 -0400)
committerDale Weiler <weilercdale@gmail.com>
Fri, 17 Oct 2014 02:55:16 +0000 (22:55 -0400)
test.c

diff --git a/test.c b/test.c
index c726b02f1ebe0999779525f7e2be087477bb93d2..370861ed9f1becd34df5a5a495a72024d3d8083e 100644 (file)
--- a/test.c
+++ b/test.c
@@ -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);
     }