[Python-checkins] cpython: fix compiler warnings

benjamin.peterson python-checkins at python.org
Thu Mar 15 00:21:50 CET 2012


http://hg.python.org/cpython/rev/b4ca2f17dde4
changeset:   75670:b4ca2f17dde4
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Mar 14 18:21:35 2012 -0500
summary:
  fix compiler warnings

files:
  Modules/_cursesmodule.c |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -649,7 +649,7 @@
     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 @@
 {
     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 @@
     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 @@
 {
     int rtn, x, y, n;
     int strtype;
-    PyObject *strobj, *bytesobj;
+    PyObject *strobj, *bytesobj = NULL;
 #ifdef HAVE_NCURSESW
     wchar_t *wstr = NULL;
 #endif

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list