mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge pull request #16958 from opensourcerouting/calloc-warning-fix
lib: fix calloc warning on recent compiler
This commit is contained in:
commit
237152fcb5
|
@ -1307,7 +1307,7 @@ static PyObject *elffile_load(PyTypeObject *type, PyObject *args,
|
|||
}
|
||||
#endif
|
||||
|
||||
w->sects = calloc(sizeof(PyObject *), w->ehdr->e_shnum);
|
||||
w->sects = calloc(w->ehdr->e_shnum, sizeof(PyObject *));
|
||||
w->n_sect = w->ehdr->e_shnum;
|
||||
|
||||
return (PyObject *)w;
|
||||
|
|
Loading…
Reference in a new issue