summaryrefslogtreecommitdiff
path: root/xdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-09-06 11:42:58 -0700
committerJunio C Hamano <gitster@pobox.com>2011-09-06 11:42:58 -0700
commitb648557ef1697df8a0db25efd74e280e6b23ce27 (patch)
treef0ef6dcba1f9b7fbd2edd1a7a604940c4b9258a5 /xdiff
parent5127a074b50959d30f1b43ec7f57e22991268c51 (diff)
parent2738bc3f09fa1baa3e664a6389394ca51e4fd376 (diff)
downloadgit-b648557ef1697df8a0db25efd74e280e6b23ce27.tar.gz
Merge branch 'rc/histogram-diff'
* rc/histogram-diff: xdiff/xprepare: initialise xdlclassifier_t cf in xdl_prepare_env()
Diffstat (limited to 'xdiff')
-rw-r--r--xdiff/xprepare.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xdiff/xprepare.c b/xdiff/xprepare.c
index eba31ffaee..5a33d1a869 100644
--- a/xdiff/xprepare.c
+++ b/xdiff/xprepare.c
@@ -264,6 +264,8 @@ int xdl_prepare_env(mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp,
long enl1, enl2, sample;
xdlclassifier_t cf;
+ memset(&cf, 0, sizeof(cf));
+
/*
* For histogram diff, we can afford a smaller sample size and
* thus a poorer estimate of the number of lines, as the hash