]> granicus.if.org Git - graphviz/commitdiff
shapes.c: Initialize `pointf p` variable.
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 29 Aug 2016 10:22:09 +0000 (12:22 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Wed, 7 Sep 2016 10:59:12 +0000 (12:59 +0200)
Because this variable was used uninitialized, it caused a runtime error on
Windows.

lib/common/shapes.c

index efb53403d5ee17ddb784614453428a2aa5b8553e..61e4fe1969eaebf50fd44f44a485d7d395702381 100644 (file)
@@ -4216,7 +4216,7 @@ void resolvePorts(edge_t * e)
 
 void gv_initShapes(void)
 {
-    pointf p;
+    pointf p = { 0, 0 };
     poly_inside(NULL, p);
     point_inside(NULL, p);
     star_inside(NULL, p);