projects
/
graphviz
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a305c8
)
Pull assignment out of assert statement. If assert is a no-op, the assignment
author
Emden R. Gansner
<erg@emdenrg.net>
Tue, 14 Mar 2017 22:04:13 +0000
(18:04 -0400)
committer
Emden R. Gansner
<erg@emdenrg.net>
Tue, 14 Mar 2017 22:04:13 +0000
(18:04 -0400)
won't be done.
lib/dotgen/dotsplines.c
patch
|
blob
|
history
diff --git
a/lib/dotgen/dotsplines.c
b/lib/dotgen/dotsplines.c
index 9dc6ad28686a11dc232e3ca4db589a0f323b2dfe..8fd6ad38efc1f10a15a94a0ad68a5ecd30aaff84 100644
(file)
--- 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;
}