mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 09:10:46 +00:00
Clear out the struct.
This commit is contained in:
parent
a576a34257
commit
54c02d212d
@ -1114,6 +1114,7 @@ int git_path_dirload_with_stat(
|
|||||||
if (error != 0) {
|
if (error != 0) {
|
||||||
giterr_clear();
|
giterr_clear();
|
||||||
error = 0;
|
error = 0;
|
||||||
|
memset(&ps->st, 0, sizeof(ps->st));
|
||||||
ps->st.st_mode = GIT_FILEMODE_UNREADABLE;
|
ps->st.st_mode = GIT_FILEMODE_UNREADABLE;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user