Skip to content

Commit 312b124

Browse files
committed
fix
1 parent fed0c31 commit 312b124

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Python/initconfig.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,12 +510,14 @@ _Py_COMP_DIAG_IGNORE_DEPR_DECLS
510510
#define SET_ITEM(KEY, EXPR) \
511511
do { \
512512
obj = (EXPR); \
513-
if (obj == NULL) \
513+
if (obj == NULL) { \
514514
goto fail; \
515+
} \
515516
int res = PyDict_SetItemString(dict, (KEY), obj); \
516517
Py_DECREF(obj); \
517-
if (res < 0) \
518+
if (res < 0) { \
518519
goto fail; \
520+
} \
519521
} while (0)
520522
#define SET_ITEM_INT(VAR) \
521523
SET_ITEM(#VAR, PyLong_FromLong(VAR))

0 commit comments

Comments
 (0)