-rw-r--r-- | cgit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -18,13 +18,13 @@ const char *cgit_version = CGIT_VERSION; struct cgit_filter *new_filter(const char *cmd, int extra_args) { struct cgit_filter *f; - if (!cmd) + if (!cmd || !cmd[0]) return NULL; f = xmalloc(sizeof(struct cgit_filter)); f->cmd = xstrdup(cmd); f->argv = xmalloc((2 + extra_args) * sizeof(char *)); f->argv[0] = f->cmd; |