Skip to content

Commit 5abc61e

Browse files
Idiomatic C
Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent 294f189 commit 5abc61e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_functoolsmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ partial_new(PyTypeObject *type, PyObject *args, PyObject *kw)
301301
"keyword Placeholders are not allowed");
302302
return NULL;
303303
}
304-
if (PyDict_SetItem(pto->kw, key, val)) {
304+
if (PyDict_SetItem(pto->kw, key, val) < 0) {
305305
Py_DECREF(pto);
306306
return NULL;
307307
}

0 commit comments

Comments
 (0)