summaryrefslogtreecommitdiff
path: root/builtin-rerere.c
diff options
context:
space:
mode:
authorBrian Downing <bdowning@lavos.net>2008-10-25 15:30:37 +0200
committerJunio C Hamano <gitster@pobox.com>2008-10-25 12:09:31 -0700
commit9ccd0a88ac3ea13ac2df4630bfd01c02084f965e (patch)
tree311e998623a98265b07aee45a17f22b486678674 /builtin-rerere.c
parent7c4ed8c83583517e7e6d851c8c01996ca6c803ff (diff)
downloadgit-9ccd0a88ac3ea13ac2df4630bfd01c02084f965e.tar.gz
Always initialize xpparam_t to 0
We're going to be adding some parameters to this, so we can't have any uninitialized data in it. Signed-off-by: Brian Downing <bdowning@lavos.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-rerere.c')
-rw-r--r--builtin-rerere.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-rerere.c b/builtin-rerere.c
index dd4573fe8d..d4dec6b715 100644
--- a/builtin-rerere.c
+++ b/builtin-rerere.c
@@ -98,6 +98,7 @@ static int diff_two(const char *file1, const char *label1,
printf("--- a/%s\n+++ b/%s\n", label1, label2);
fflush(stdout);
+ memset(&xpp, 0, sizeof(xpp));
xpp.flags = XDF_NEED_MINIMAL;
memset(&xecfg, 0, sizeof(xecfg));
xecfg.ctxlen = 3;