diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-22 08:58:31 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-12-22 08:58:31 +0100 |
| commit | 811fadc9f7aca0287af3755bacfe77da363a15b2 (patch) | |
| tree | 0962762476a39d7182d5259e43537035aecd1bf4 /text.c | |
| parent | 3dcd92f355948e4b99b9b80fc85982640f682247 (diff) | |
| download | vis-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
