]> git.marmaro.de Git - mmh/blobdiff - sbr/brkstring.c
Replace mh_xmalloc() with mh_xcalloc()
[mmh] / sbr / brkstring.c
index 205c8c9e9df7b247cdc38608b79ed4b90cf605aa..acbba6a96998baf5426568cff658a948ed967f09 100644 (file)
@@ -30,7 +30,7 @@ brkstring(char *str, char *brksep, char *brkterm)
        /* allocate initial space for pointers on first call */
        if (!broken) {
                len = NUMBROKEN;
        /* allocate initial space for pointers on first call */
        if (!broken) {
                len = NUMBROKEN;
-               broken = (char **)mh_xmalloc((size_t)(len * sizeof(*broken)));
+               broken = (char **)mh_xcalloc((size_t)len, sizeof(*broken));
        }
 
        /*
        }
 
        /*