Commit 54c02d21 by Alan Rogers

Clear out the struct.

parent a576a342
...@@ -1114,6 +1114,7 @@ int git_path_dirload_with_stat( ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment