]> git.ipfire.org Git - thirdparty/git.git/blobdiff - line-range.c
use CALLOC_ARRAY
[thirdparty/git.git] / line-range.c
index 9b50583dc05147fb6940c1d551ba274702704f07..955a8a9535575fe0a397497d765f3e0e97334259 100644 (file)
@@ -202,7 +202,7 @@ static const char *parse_range_funcname(
        drv = userdiff_find_by_path(istate, path);
        if (drv && drv->funcname.pattern) {
                const struct userdiff_funcname *pe = &drv->funcname;
-               xecfg = xcalloc(1, sizeof(*xecfg));
+               CALLOC_ARRAY(xecfg, 1);
                xdiff_set_find_func(xecfg, pe->pattern, pe->cflags);
        }