Clear out the struct.

This commit is contained in:
Alan Rogers 2014-06-04 15:27:00 -07:00
parent a576a34257
commit 54c02d212d

View File

@ -1114,6 +1114,7 @@ int git_path_dirload_with_stat(
if (error != 0) {
giterr_clear();
error = 0;
memset(&ps->st, 0, sizeof(ps->st));
ps->st.st_mode = GIT_FILEMODE_UNREADABLE;
continue;
}