mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-01-18 11:27:37 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue