]> granicus.if.org Git - graphviz/commitdiff
squash a -Wmaybe-uninitiailzed warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Apr 2021 03:18:30 +0000 (20:18 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 14 May 2021 00:03:36 +0000 (17:03 -0700)
This was a false positive because all use of the variable is guarded by the
Concentrate flag, but it is still worth pacifying the compiler here.

lib/ortho/ortho.c

index 463b7b776c07617f43d6ef0b1a397d0af000f88c..dff7eebe3f8d722b7ec0faf1273a1e9363758bc2 100644 (file)
@@ -1260,7 +1260,7 @@ orthoEdges (Agraph_t* g, int doLbls)
     epair_t* es = N_GNEW(agnedges(g), epair_t);
     cell* start;
     cell* dest;
-    PointSet* ps;
+    PointSet* ps = NULL;
     textlabel_t* lbl;
 
     if (Concentrate)