mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 06:15:33 -04:00
elftoolchain: 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/D46007
(cherry picked from commit b73445a32f)
This commit is contained in:
parent
a8c5babb35
commit
360c47b956
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ _dwarf_alloc(Dwarf_Debug *ret_dbg, int mode, Dwarf_Error *error)
|
|||
{
|
||||
Dwarf_Debug dbg;
|
||||
|
||||
if ((dbg = calloc(sizeof(struct _Dwarf_Debug), 1)) == NULL) {
|
||||
if ((dbg = calloc(1, sizeof(struct _Dwarf_Debug))) == NULL) {
|
||||
DWARF_SET_ERROR(dbg, error, DW_DLE_MEMORY);
|
||||
return (DW_DLE_MEMORY);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue