Kaydet (Commit) 9d872e19 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix possibily uninitialized memory usage (closes #12474)

üst 723585bb
......@@ -904,10 +904,10 @@ symtable_exit_block(struct symtable *st, void *ast)
st->st_cur = NULL;
size = PyList_GET_SIZE(st->st_stack);
if (size) {
st->st_cur = (PySTEntryObject *)PyList_GET_ITEM(st->st_stack,
size - 2);
if (PyList_SetSlice(st->st_stack, size - 1, size, NULL) < 0)
return 0;
if (--size)
st->st_cur = (PySTEntryObject *)PyList_GET_ITEM(st->st_stack, size - 1);
}
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment