diff Modules/_cursesmodule.c @ 55297:a29babb54884 legacy-trunk

Initialize variables in PyCurses_getsyx() to avoid compiler warnings.
author Alexandre Vassalotti <alexandre@peadrop.com>
date Fri, 17 Jul 2009 07:54:23 +0000
parents be07f379d87a
children 2bfaddb19c3a
line wrap: on
line diff
--- a/Modules/_cursesmodule.c	Fri Jul 17 07:46:46 2009 +0000
+++ b/Modules/_cursesmodule.c	Fri Jul 17 07:54:23 2009 +0000
@@ -1763,7 +1763,8 @@
 static PyObject *
 PyCurses_getsyx(PyObject *self)
 {
-  int x,y;
+  int x = 0;
+  int y = 0;
 
   PyCursesInitialised