From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Sun, 8 Mar 2015 16:32:26 +0000 Subject: [PATCH 12/13] cache: don't use an integer as a NULL pointer In-Reply-To: References: Message-ID: <5c1bd4ea2fdfe80ff1cb5aa5780783c8514a5a8d.1425832129.git.john@keeping.me.uk> Signed-off-by: John Keeping --- 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