[Python-checkins] r74054 - in python/branches/py3k: Modules/_cursesmodule.c Modules/main.c

alexandre.vassalotti python-checkins at python.org
Fri Jul 17 10:31:44 CEST 2009


Author: alexandre.vassalotti
Date: Fri Jul 17 10:31:44 2009
New Revision: 74054

Log:
Merged revisions 74051-74052 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74051 | alexandre.vassalotti | 2009-07-17 03:54:23 -0400 (Fri, 17 Jul 2009) | 2 lines
  
  Initialize variables in PyCurses_getsyx() to avoid compiler warnings.
........
  r74052 | alexandre.vassalotti | 2009-07-17 04:09:04 -0400 (Fri, 17 Jul 2009) | 3 lines
  
  Fix GCC warning about fprintf used without a string literal and
  without format arguments.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Modules/_cursesmodule.c
   python/branches/py3k/Modules/main.c

Modified: python/branches/py3k/Modules/_cursesmodule.c
==============================================================================
--- python/branches/py3k/Modules/_cursesmodule.c	(original)
+++ python/branches/py3k/Modules/_cursesmodule.c	Fri Jul 17 10:31:44 2009
@@ -1806,7 +1806,8 @@
 static PyObject *
 PyCurses_getsyx(PyObject *self)
 {
-  int x,y;
+  int x = 0;
+  int y = 0;
 
   PyCursesInitialised
 

Modified: python/branches/py3k/Modules/main.c
==============================================================================
--- python/branches/py3k/Modules/main.c	(original)
+++ python/branches/py3k/Modules/main.c	Fri Jul 17 10:31:44 2009
@@ -131,9 +131,9 @@
 	if (exitcode)
 		fprintf(f, "Try `python -h' for more information.\n");
 	else {
-		fprintf(f, usage_1);
-		fprintf(f, usage_2);
-		fprintf(f, usage_3);
+		fputs(usage_1, f);
+		fputs(usage_2, f);
+		fputs(usage_3, f);
 		fprintf(f, usage_4, DELIM);
 		fprintf(f, usage_5, DELIM, PYTHONHOMEHELP);
 	}


More information about the Python-checkins mailing list