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 301edfa commit 2752707Copy full SHA for 2752707
Modules/main.c
@@ -482,7 +482,8 @@ Py_Main(int argc, wchar_t **argv)
482
warning_option = PyUnicode_FromWideChar(_PyOS_optarg, -1);
483
if (warning_option == NULL)
484
Py_FatalError("failure in handling of -W argument");
485
- PyList_Append(warning_options, warning_option);
+ if (PyList_Append(warning_options, warning_option) == -1)
486
+ Py_FatalError("failure in handling of -W argument");
487
Py_DECREF(warning_option);
488
break;
489
0 commit comments