]> git.cameronkatri.com Git - cgit.git/blobdiff - cache.c
Fix processing of repo.hide and repo.ignore
[cgit.git] / cache.c
diff --git a/cache.c b/cache.c
index 900b1614df8e1bb01ed7f203519a2fd4abd1cd9e..cd998127cc23e361cd9f53d9d988754fa5faa93d 100644 (file)
--- a/cache.c
+++ b/cache.c
@@ -411,7 +411,7 @@ int cache_ls(const char *path)
        DIR *dir;
        struct dirent *ent;
        int err = 0;
-       struct cache_slot slot = { 0 };
+       struct cache_slot slot = { NULL };
        struct strbuf fullname = STRBUF_INIT;
        size_t prefixlen;