From: Paul Smith Date: Sun, 9 Jul 2017 22:56:36 +0000 (-0400) Subject: * variable.c (create_pattern_var): [SV 51266] Create with xcalloc(). X-Git-Tag: 4.2.90~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22fd57869383a6ca44f5d3c189c6f629c6929ede;p=thirdparty%2Fmake.git * variable.c (create_pattern_var): [SV 51266] Create with xcalloc(). Reported by Chris Metcalf --- diff --git a/variable.c b/variable.c index 364774f0..e9bf5b59 100644 --- a/variable.c +++ b/variable.c @@ -51,7 +51,7 @@ struct pattern_var * create_pattern_var (const char *target, const char *suffix) { register unsigned int len = strlen (target); - register struct pattern_var *p = xmalloc (sizeof (struct pattern_var)); + register struct pattern_var *p = xcalloc (sizeof (struct pattern_var)); if (pattern_vars != 0) {