all repos — cgit @ 80d52079f7f58d273d99745f93909e5c6524a9bd

a hyperfast web frontend for git written in c

cache: don't use an integer as a NULL pointer

Signed-off-by: John Keeping <john@keeping.me.uk>
John Keeping john@keeping.me.uk
Sun, 08 Mar 2015 16:32:26 +0000
commit

80d52079f7f58d273d99745f93909e5c6524a9bd

parent

d34b96719053ff9340519b64f6d970caaa64350d

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M cache.ccache.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;