]> granicus.if.org Git - cgit/commitdiff
cache: don't use an integer as a NULL pointer
authorJohn Keeping <john@keeping.me.uk>
Sun, 8 Mar 2015 16:32:26 +0000 (16:32 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 9 Mar 2015 16:40:44 +0000 (17:40 +0100)
Signed-off-by: John Keeping <john@keeping.me.uk>
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;