From e4edd1457b2c5781a160b0044cd884a90c1237b4 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Tue, 14 Mar 2017 18:04:13 -0400 Subject: [PATCH] Pull assignment out of assert statement. If assert is a no-op, the assignment won't be done. --- lib/dotgen/dotsplines.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index 9dc6ad286..8fd6ad38e 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -231,7 +231,8 @@ setEdgeLabelPos (graph_t * g) if (ND_node_type(n) == VIRTUAL) { if (ND_alg(n)) { // label of non-adjacent flat edge edge_t* fe = (edge_t*)ND_alg(n); - assert ((l = ED_label(fe))); + l = ED_label(fe); + assert (l); l->pos = ND_coord(n); l->set = TRUE; } -- 2.40.0