[PATCH 12/13] cache: don't use an integer as a NULL pointer

John Keeping john at keeping.me.uk
Sun Mar 8 17:32:26 CET 2015


Signed-off-by: John Keeping <john at keeping.me.uk>
---
 cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cache.c b/cache.c
index 900b161..cd99812 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;
 
-- 
2.3.1.308.g754cd77



More information about the CGit mailing list