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.
This commit is contained in:
Jason A. Donenfeld 2013-03-20 20:43:13 +01:00
부모 7669f7f730
커밋 40e1d9b617
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -523,6 +523,7 @@ void cgit_submodule_link(const char *class, char *path, const char *rev)
char tail, *dir;
size_t len;
len = 0;
tail = 0;
list = &ctx.repo->submodules;
item = lookup_path(list, path);