From: John Keeping Date: Sun, 8 Mar 2015 16:32:26 +0000 (+0000) Subject: cache: don't use an integer as a NULL pointer X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/80d52079f7f58d273d99745f93909e5c6524a9bd?ds=sidebyside cache: don't use an integer as a NULL pointer Signed-off-by: John Keeping --- 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;