Rewrite dynamic structure initializations to runtime assignment
[gitweb.git] / convert.c
index 4f8fcb7bbb00b66f1eaa354119784e6ef57e1eb4..3fea3e95091b5c49a7b38db381524f50436d11cf 100644 (file)
--- a/convert.c
+++ b/convert.c
@@ -249,7 +249,9 @@ static int filter_buffer(int in, int out, void *data)
        struct child_process child_process;
        struct filter_params *params = (struct filter_params *)data;
        int write_err, status;
-       const char *argv[] = { params->cmd, NULL };
+       const char *argv[] = { NULL, NULL };
+
+       argv[0] = params->cmd;
 
        memset(&child_process, 0, sizeof(child_process));
        child_process.argv = argv;