about summary refs log tree commit diff
path: root/cache.c
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2015-03-08 16:32:26 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2015-03-09 17:40:44 +0100
commit80d52079f7f58d273d99745f93909e5c6524a9bd (patch)
treea577aa7a00cce154704bdce68f7b2b28d8449adf /cache.c
parentui-shared: don't use an integer as a NULL pointer (diff)
downloadcgit-pink-80d52079f7f58d273d99745f93909e5c6524a9bd.tar.gz
cgit-pink-80d52079f7f58d273d99745f93909e5c6524a9bd.zip
cache: don't use an integer as a NULL pointer
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to '')
-rw-r--r--cache.c2
1 files changed, 1 insertions, 1 deletions
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;