diff options
author | John Keeping | 2015-03-08 16:32:26 +0000 |
---|---|---|
committer | Jason A. Donenfeld | 2015-03-09 17:40:44 +0100 |
commit | 80d52079f7f58d273d99745f93909e5c6524a9bd (patch) | |
tree | a577aa7a00cce154704bdce68f7b2b28d8449adf | |
parent | d34b96719053ff9340519b64f6d970caaa64350d (diff) | |
download | cgit-80d52079f7f58d273d99745f93909e5c6524a9bd.tar.gz cgit-80d52079f7f58d273d99745f93909e5c6524a9bd.tar.bz2 cgit-80d52079f7f58d273d99745f93909e5c6524a9bd.zip |
cache: don't use an integer as a NULL pointer
Signed-off-by: John Keeping <john@keeping.me.uk>
-rw-r--r-- | cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -411,7 +411,7 @@ int cache_ls(const char *path) | |||
411 | DIR *dir; | 411 | DIR *dir; |
412 | struct dirent *ent; | 412 | struct dirent *ent; |
413 | int err = 0; | 413 | int err = 0; |
414 | struct cache_slot slot = { 0 }; | 414 | struct cache_slot slot = { NULL }; |
415 | struct strbuf fullname = STRBUF_INIT; | 415 | struct strbuf fullname = STRBUF_INIT; |
416 | size_t prefixlen; | 416 | size_t prefixlen; |
417 | 417 | ||