mirror of
https://github.com/opnsense/src.git
synced 2026-02-19 02:30:08 -05:00
lib80211: Consistently use item count as the first argument to calloc
Reported by: GCC 14 -Wcalloc-transposed-args Reviewed by: rlibby, emaste Differential Revision: https://reviews.freebsd.org/D46008 (cherry picked from commit 8aadd10a65b11f18950118a10569233e1420ab45)
This commit is contained in:
parent
360c47b956
commit
d480a358cf
1 changed files with 1 additions and 1 deletions
|
|
@ -441,7 +441,7 @@ lib80211_regdomain_readconfig(struct regdata *rdp, const void *p, size_t len)
|
|||
XML_ParserFree(mt->parser);
|
||||
|
||||
/* setup the identifer table */
|
||||
rdp->ident = calloc(sizeof(struct ident), mt->nident + 1);
|
||||
rdp->ident = calloc(mt->nident + 1, sizeof(struct ident));
|
||||
if (rdp->ident == NULL)
|
||||
return ENOMEM;
|
||||
free(mt);
|
||||
|
|
|
|||
Loading…
Reference in a new issue