Commit 54c02d212d70b439f402c74c6b1f6c835daa43fc

Alan Rogers 2014-06-04T15:27:00

Clear out the struct.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/path.c b/src/path.c
index bc89a9b..0c1013f 100644
--- a/src/path.c
+++ b/src/path.c
@@ -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;
 			}