Explorar o código

add FIXME note re. uninitialized variables leading to lines rendering with no vertical width

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59548 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman %!s(int64=11) %!d(string=hai) anos
pai
achega
a39fe73623
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      lib/pngdriver/Draw_line.c

+ 2 - 0
lib/pngdriver/Draw_line.c

@@ -80,6 +80,8 @@ void png_draw_line(double x1, double y1, double x2, double y2)
     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);