the repository which powers this website
cache: don't use an integer as a NULL pointer
Signed-off-by: John Keeping <[email protected]>
John Keeping 2015-03-09
parent d34b967 · commit 80d5207
-rw-r--r--cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.c b/cache.c
index 900b1614..cd998127 100644
--- 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;