[GRASS-SVN] r59548 - grass/trunk/lib/pngdriver

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 1 20:49:24 PDT 2014


Author: hamish
Date: 2014-04-01 20:49:23 -0700 (Tue, 01 Apr 2014)
New Revision: 59548

Modified:
   grass/trunk/lib/pngdriver/Draw_line.c
Log:
add FIXME note re. uninitialized variables leading to lines rendering with no vertical width

Modified: grass/trunk/lib/pngdriver/Draw_line.c
===================================================================
--- grass/trunk/lib/pngdriver/Draw_line.c	2014-04-02 03:42:22 UTC (rev 59547)
+++ grass/trunk/lib/pngdriver/Draw_line.c	2014-04-02 03:49:23 UTC (rev 59548)
@@ -80,6 +80,8 @@
     path.alloc = 5;
     path.start = -1;
 
+    /* FIXME: dx, dy used uninitialized here, lines have no vertical width */
+
     if (dy > dx) {
 	path_move(&path, x1 - k, y1);
 	path_cont(&path, x1 + k, y1);



More information about the grass-commit mailing list