diff options
author | Alan Rogers <alan@github.com> | 2014-06-04 15:27:00 -0700 |
---|---|---|
committer | Alan Rogers <alan@github.com> | 2014-06-04 15:27:00 -0700 |
commit | 54c02d212d70b439f402c74c6b1f6c835daa43fc (patch) | |
tree | e9a34f53870896e7490bc7219d5463017d6418b8 | |
parent | a576a34257a0aa952de228ef3c2b012c5742ac09 (diff) | |
download | libgit2-54c02d212d70b439f402c74c6b1f6c835daa43fc.tar.gz |
Clear out the struct.
-rw-r--r-- | src/path.c | 1 |
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; } |