aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-12-22 08:58:31 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-12-22 08:58:31 +0100
commit811fadc9f7aca0287af3755bacfe77da363a15b2 (patch)
tree0962762476a39d7182d5259e43537035aecd1bf4 /text.c
parent3dcd92f355948e4b99b9b80fc85982640f682247 (diff)
downloadvis-811fadc9f7aca0287af3755bacfe77da363a15b2.tar.gz
vis-811fadc9f7aca0287af3755bacfe77da363a15b2.tar.xz
text: do not rely on indeterminate value in a comparison
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.c b/text.c
index 55957c0..b92258f 100644
--- a/text.c
+++ b/text.c
@@ -545,9 +545,9 @@ static void change_free(Change *c) {
if (!c)
return;
/* only free the new part of the span, the old one is still in use */
- piece_free(c->new.start);
if (c->new.start != c->new.end)
piece_free(c->new.end);
+ piece_free(c->new.start);
free(c);
}