From 811fadc9f7aca0287af3755bacfe77da363a15b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 22 Dec 2016 08:58:31 +0100 Subject: text: do not rely on indeterminate value in a comparison --- text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text.c') 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); } -- cgit v1.2.3