aboutsummaryrefslogtreecommitdiff
path: root/devel/got/files/patch-lib_worktree.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/got/files/patch-lib_worktree.c')
-rw-r--r--devel/got/files/patch-lib_worktree.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/devel/got/files/patch-lib_worktree.c b/devel/got/files/patch-lib_worktree.c
new file mode 100644
index 000000000000..80921230a6a2
--- /dev/null
+++ b/devel/got/files/patch-lib_worktree.c
@@ -0,0 +1,12 @@
+https://git.gameoftrees.org/gitweb/?p=got.git;a=commitdiff;h=4cc1f028ad995562d5037a1c8c54a241956d9dbb
+
+--- lib/worktree.c.orig 2021-03-23 14:40:09 UTC
++++ lib/worktree.c
+@@ -1733,6 +1733,7 @@ get_file_status(unsigned char *status, struct stat *sb
+ unsigned char staged_status = get_staged_status(ie);
+
+ *status = GOT_STATUS_NO_CHANGE;
++ memset(sb, 0, sizeof(*sb));
+
+ /*
+ * Whenever the caller provides a directory descriptor and a