| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2930,9 +2930,13 @@ PyCurses_Start_Color(PyObject *self) | |||
| 2930 | 2930 | if (code != ERR) { | |
| 2931 | 2931 | initialisedcolors = TRUE; | |
| 2932 | 2932 | c = PyLong_FromLong((long) COLORS); | |
| 2933 | + if (c == NULL) | ||
| 2934 | + return NULL; | ||
| 2933 | 2935 | PyDict_SetItemString(ModDict, "COLORS", c); | |
| 2934 | 2936 | Py_DECREF(c); | |
| 2935 | 2937 | cp = PyLong_FromLong((long) COLOR_PAIRS); | |
| 2938 | + if (cp == NULL) | ||
| 2939 | + return NULL; | ||
| 2936 | 2940 | PyDict_SetItemString(ModDict, "COLOR_PAIRS", cp); | |
| 2937 | 2941 | Py_DECREF(cp); | |
| 2938 | 2942 | Py_INCREF(Py_None); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments