summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Rogers <alan@github.com>2014-06-04 15:27:00 -0700
committerAlan Rogers <alan@github.com>2014-06-04 15:27:00 -0700
commit54c02d212d70b439f402c74c6b1f6c835daa43fc (patch)
treee9a34f53870896e7490bc7219d5463017d6418b8
parenta576a34257a0aa952de228ef3c2b012c5742ac09 (diff)
downloadlibgit2-54c02d212d70b439f402c74c6b1f6c835daa43fc.tar.gz
Clear out the struct.
-rw-r--r--src/path.c1
1 files changed, 1 insertions, 0 deletions
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;
}