diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 85fdc7e7f49..3df85ff0228 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -634,8 +634,7 @@ _PySys_Init(void) Py_INCREF(warnoptions); } if (warnoptions != NULL) { - PyDict_SetItemString(sysdict, "warnoptions", v = warnoptions); - Py_DECREF(v); + PyDict_SetItemString(sysdict, "warnoptions", warnoptions); } if (PyErr_Occurred())