From: Benjamin Peterson Date: Wed, 14 Mar 2012 23:21:35 +0000 (-0500) Subject: fix compiler warnings X-Git-Tag: v3.3.0a2~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e5451940c0e5b820569e842b7cd2cc73add7db3;p=thirdparty%2FPython%2Fcpython.git fix compiler warnings --- diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 40b6e68aae43..de45f5189cbe 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -649,7 +649,7 @@ PyCursesWindow_AddStr(PyCursesWindowObject *self, PyObject *args) int rtn; int x, y; int strtype; - PyObject *strobj, *bytesobj; + PyObject *strobj, *bytesobj = NULL; #ifdef HAVE_NCURSESW wchar_t *wstr = NULL; #endif @@ -725,7 +725,7 @@ PyCursesWindow_AddNStr(PyCursesWindowObject *self, PyObject *args) { int rtn, x, y, n; int strtype; - PyObject *strobj, *bytesobj; + PyObject *strobj, *bytesobj = NULL; #ifdef HAVE_NCURSESW wchar_t *wstr = NULL; #endif @@ -1413,7 +1413,7 @@ PyCursesWindow_InsStr(PyCursesWindowObject *self, PyObject *args) int rtn; int x, y; int strtype; - PyObject *strobj, *bytesobj; + PyObject *strobj, *bytesobj = NULL; #ifdef HAVE_NCURSESW wchar_t *wstr = NULL; #endif @@ -1491,7 +1491,7 @@ PyCursesWindow_InsNStr(PyCursesWindowObject *self, PyObject *args) { int rtn, x, y, n; int strtype; - PyObject *strobj, *bytesobj; + PyObject *strobj, *bytesobj = NULL; #ifdef HAVE_NCURSESW wchar_t *wstr = NULL; #endif