]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Initialize variables in PyCurses_getsyx() to avoid compiler warnings.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 17 Jul 2009 07:54:23 +0000 (07:54 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 17 Jul 2009 07:54:23 +0000 (07:54 +0000)
Modules/_cursesmodule.c

index 922f351e429d5865914ae8e3f024f7a14ce40b2a..cd143a4ae166a2f7d18ba6e590f4d9194aa961e4 100644 (file)
@@ -1763,7 +1763,8 @@ PyCurses_EraseChar(PyObject *self)
 static PyObject *
 PyCurses_getsyx(PyObject *self)
 {
-  int x,y;
+  int x = 0;
+  int y = 0;
 
   PyCursesInitialised