From 54c02d212d70b439f402c74c6b1f6c835daa43fc Mon Sep 17 00:00:00 2001 From: Alan Rogers Date: Wed, 4 Jun 2014 15:27:00 -0700 Subject: [PATCH] Clear out the struct. --- src/path.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/path.c b/src/path.c index bc89a9be9..0c1013fa0 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; }