summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7669f7f)
Since tail is initialized to 0, we will never get a warning on the last
if statement, but recent gcc complains anyway. So, we initialize len as
well. Future gcc versions should be able to optimize this out anyway.
char tail, *dir;
size_t len;
char tail, *dir;
size_t len;
tail = 0;
list = &ctx.repo->submodules;
item = lookup_path(list, path);
tail = 0;
list = &ctx.repo->submodules;
item = lookup_path(list, path);