Skip to content

Commit 7998bc9

Browse files
committed
Make sure scope of variable covers all uses
1 parent e51d051 commit 7998bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,7 @@ _PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
18111811
bool has_dict = (kwargs != NULL && PyDict_GET_SIZE(kwargs) > 0);
18121812
PyObject *kwnames = NULL;
18131813
PyObject *const *newargs;
1814+
PyObject *stack_array[8];
18141815
if (has_dict) {
18151816
newargs = _PyStack_UnpackDict(tstate, _PyTuple_ITEMS(callargs), nargs, kwargs, &kwnames);
18161817
if (newargs == NULL) {
@@ -1824,7 +1825,6 @@ _PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
18241825
}
18251826
else {
18261827
if (nargs <= 8) {
1827-
PyObject *stack_array[8];
18281828
newargs = stack_array;
18291829
}
18301830
else {

0 commit comments

Comments
 (0)