Skip to content

Commit

Permalink
idiomatic C
Browse files Browse the repository at this point in the history
  • Loading branch information
dg-pb committed Jan 5, 2025
1 parent f9e3fd4 commit 42f3dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_functoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
return NULL;
}
}
if (PyDict_SetItem(pto_kw, key, val)) {
if (PyDict_SetItem(pto_kw, key, val) < 0) {
DEALLOCATE_STACK(small_kwtail, kwtail);
Py_DECREF(pto_kw);
return NULL;
Expand Down

0 comments on commit 42f3dc7

Please sign in to comment.