We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7cd37b commit f0168d4Copy full SHA for f0168d4
1 file changed
Python/initconfig.c
@@ -512,11 +512,10 @@ _Py_COMP_DIAG_IGNORE_DEPR_DECLS
512
obj = (EXPR); \
513
if (obj == NULL) \
514
goto fail; \
515
- if (PyDict_SetItemString(dict, (KEY), obj) < 0) { \
516
- Py_DECREF(obj); \
517
- goto fail; \
518
- } \
+ int res = PyDict_SetItemString(dict, (KEY), obj); \
519
Py_DECREF(obj); \
+ if (res < 0) \
+ goto fail; \
520
} while (0)
521
#define SET_ITEM_INT(VAR) \
522
SET_ITEM(#VAR, PyLong_FromLong(VAR))
0 commit comments