git-completion: fix regression in zsh support
[gitweb.git] / fast-import.c
index d9f9a3f524671877d01d0897141a753f8b9c766a..65d65bf8f91b7a584c7dc77f84a5dec263c3d11c 100644 (file)
@@ -2939,7 +2939,7 @@ static void parse_ls(struct branch *b)
 {
        const char *p;
        struct tree_entry *root = NULL;
-       struct tree_entry leaf = {0};
+       struct tree_entry leaf = {NULL};
 
        /* ls SP (<treeish> SP)? <path> */
        p = command_buf.buf + strlen("ls ");