summaryrefslogtreecommitdiffabout
path: root/cgit.c
Side-by-side diff
Diffstat (limited to 'cgit.c') (more/less context) (show whitespace changes)
-rw-r--r--cgit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.c b/cgit.c
index fd341b8..b3a98c1 100644
--- a/cgit.c
+++ b/cgit.c
@@ -22,5 +22,5 @@ struct cgit_filter *new_filter(const char *cmd, int extra_args)
struct cgit_filter *f;
- if (!cmd)
+ if (!cmd || !cmd[0])
return NULL;