From 29bb8c3c9418c85ed6bf1e67a685d0081a028845 Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Mon, 29 Aug 2016 12:22:09 +0200 Subject: [PATCH] shapes.c: Initialize `pointf p` variable. Because this variable was used uninitialized, it caused a runtime error on Windows. --- lib/common/shapes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0