Code

xdiff/xprepare: initialise xdlclassifier_t cf in xdl_prepare_env()
[git.git] / xdiff / xprepare.c
index 620fc9a657e2246d3a382c916c2cdd4f820c0c44..5b676b7ca5c7d5e8b27b594f3ca8f008cc031fad 100644 (file)
@@ -239,6 +239,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