X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/41a82a7ecba04be5b27b3ffc813e2f34d2786a38..34f0ab116ad7734e96127d3cd046861a5c82c11c:/sbr/fmt_compile.c diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index b1788ab6..84ef5983 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -409,11 +409,7 @@ fmt_compile(char *fstring, struct format **fmt, int reset_comptable) */ i = strlen(fstring)/2 + 1; if (i==1) i++; - next_fp = formatvec = (struct format *)mh_xcalloc ((size_t) i, - sizeof(struct format)); - if (next_fp == NULL) - adios (NULL, "unable to allocate format storage"); - + next_fp = formatvec = mh_xcalloc(i, sizeof *next_fp); infunction = 0; cp = compile(format_string);