ui-shared: squelch compiler warning.
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.
此提交包含在:
@ -523,6 +523,7 @@ void cgit_submodule_link(const char *class, char *path, const char *rev)
|
|||||||
char tail, *dir;
|
char tail, *dir;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
|
len = 0;
|
||||||
tail = 0;
|
tail = 0;
|
||||||
list = &ctx.repo->submodules;
|
list = &ctx.repo->submodules;
|
||||||
item = lookup_path(list, path);
|
item = lookup_path(list, path);
|
||||||
|
新增問題並參考
封鎖使用者