SF.net SVN: geany:[5884] trunk/src/printing.c

colombanw at users.sourceforge.net colombanw at xxxxx
Sat Aug 6 18:33:05 UTC 2011


Revision: 5884
          http://geany.svn.sourceforge.net/geany/?rev=5884&view=rev
Author:   colombanw
Date:     2011-08-06 18:33:04 +0000 (Sat, 06 Aug 2011)

Log Message:
-----------
Fix unlikely but theoretically possible use of an uninitialized variable

Modified Paths:
--------------
    trunk/src/printing.c

Modified: trunk/src/printing.c
===================================================================
--- trunk/src/printing.c	2011-08-03 15:20:43 UTC (rev 5883)
+++ trunk/src/printing.c	2011-08-06 18:33:04 UTC (rev 5884)
@@ -511,7 +511,7 @@
 	GeanyEditor *editor;
 	cairo_t *cr;
 	gdouble width, height;
-	gdouble x, y;
+	gdouble x = 0.0, y = 0.0;
 	/*gint layout_h;*/
 	gint count;
 	GString *str;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list