Skip to content

Commit 1cf286d

Browse files
Fix compiler warning
1 parent d55e11b commit 1cf286d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/ceval.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,7 +1863,7 @@ _PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
18631863
{
18641864
bool has_dict = (kwargs != NULL && PyDict_GET_SIZE(kwargs) > 0);
18651865
PyObject *kwnames = NULL;
1866-
_PyStackRef *newargs;
1866+
_PyStackRef *newargs = NULL;
18671867
PyObject *const *object_array = NULL;
18681868
_PyStackRef stack_array[8];
18691869
if (has_dict) {
@@ -1904,7 +1904,7 @@ _PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
19041904
_PyStack_UnpackDict_FreeNoDecRef(object_array, kwnames);
19051905
}
19061906
else if (nargs > 8) {
1907-
PyMem_Free((void *)newargs);
1907+
PyMem_Free((void *)newargs);
19081908
}
19091909
/* No need to decref func here because the reference has been stolen by
19101910
_PyEvalFramePushAndInit.

0 commit comments

Comments
 (0)