Init prev_name (#2615)

Co-authored-by: heran yang <heran.yang@seafile.com>
This commit is contained in:
feiniks 2022-10-30 10:54:58 +08:00 committed by GitHub
parent 6bd36a9575
commit f89bdb4b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1974,7 +1974,7 @@ int write_index(struct index_state *istate, int newfd)
struct cache_entry **cache = istate->cache;
int entries = istate->cache_nr;
SeafStat st;
const char *prev_name;
const char *prev_name = NULL;
int ret = 0;
memset (&info, 0, sizeof(info));