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 fed0c31 commit 312b124Copy full SHA for 312b124
1 file changed
Python/initconfig.c
@@ -510,12 +510,14 @@ _Py_COMP_DIAG_IGNORE_DEPR_DECLS
510
#define SET_ITEM(KEY, EXPR) \
511
do { \
512
obj = (EXPR); \
513
- if (obj == NULL) \
+ if (obj == NULL) { \
514
goto fail; \
515
+ } \
516
int res = PyDict_SetItemString(dict, (KEY), obj); \
517
Py_DECREF(obj); \
- if (res < 0) \
518
+ if (res < 0) { \
519
520
521
} while (0)
522
#define SET_ITEM_INT(VAR) \
523
SET_ITEM(#VAR, PyLong_FromLong(VAR))
0 commit comments