mirror of
https://git.zx2c4.com/cgit
synced 2025-09-01 15:25:33 +02:00
cache: don't use an integer as a NULL pointer
Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
d34b967190
commit
80d52079f7
1 changed files with 1 additions and 1 deletions
2
cache.c
2
cache.c
|
@ -411,7 +411,7 @@ int cache_ls(const char *path)
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
struct dirent *ent;
|
struct dirent *ent;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
struct cache_slot slot = { 0 };
|
struct cache_slot slot = { NULL };
|
||||||
struct strbuf fullname = STRBUF_INIT;
|
struct strbuf fullname = STRBUF_INIT;
|
||||||
size_t prefixlen;
|
size_t prefixlen;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue