]> git.ipfire.org Git - thirdparty/git.git/blobdiff - xdiff/xprepare.c
Merge branch 'jm/maint-apply-detects-corrupt-patch-header' into maint
[thirdparty/git.git] / xdiff / xprepare.c
index eba31ffaeebb4fe15f45ce854aa2ed3f63489b8c..5a33d1a86964472a82a63f18ab3c9b4da9b23165 100644 (file)
@@ -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