Author: John Keeping <john@keeping.me.uk>
cache: don't use an integer as a NULL pointer Signed-off-by: John Keeping <john@keeping.me.uk>
cache.c | 2 +-
diff --git a/cache.c b/cache.c index 900b1614df8e1bb01ed7f203519a2fd4abd1cd9e..cd998127cc23e361cd9f53d9d988754fa5faa93d 100644 --- a/cache.c +++ b/cache.c @@ -411,7 +411,7 @@ { 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;