mirror of
https://github.com/mirror/make.git
synced 2026-08-08 00:51:25 +00:00
* variable.c (create_pattern_var): [SV 51266] Create with xcalloc().
Reported by Chris Metcalf <cmetcalf@mellanox.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user