From: Erwin Janssen Date: Mon, 29 Aug 2016 10:22:09 +0000 (+0200) Subject: shapes.c: Initialize `pointf p` variable. X-Git-Tag: untagged-897b348e31e4e52e8698^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29bb8c3c9418c85ed6bf1e67a685d0081a028845;p=graphviz shapes.c: Initialize `pointf p` variable. Because this variable was used uninitialized, it caused a runtime error on Windows. --- diff --git a/lib/common/shapes.c b/lib/common/shapes.c index efb53403d..61e4fe196 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -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);