mirror of
https://github.com/mirror/make.git
synced 2025-03-05 23:30:57 +08:00
* variable.c (create_pattern_var): [SV 51266] Create with xcalloc().
Reported by Chris Metcalf <cmetcalf@mellanox.com>
This commit is contained in:
parent
78b5fec689
commit
22fd578693
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user