mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge pull request #17986 from dmytroshytyi-6WIND/fix-static-30-01-2025
lib: fix static analysis error
This commit is contained in:
commit
797e051222
|
@ -1306,8 +1306,8 @@ static PyObject *elffile_load(PyTypeObject *type, PyObject *args,
|
|||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
w->sects = calloc(w->ehdr->e_shnum, sizeof(PyObject *));
|
||||
if (w->ehdr->e_shnum > 0)
|
||||
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