From e050ef745ec923e375d790c9355e79d9a86c1966 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 14 Aug 1993 04:36:08 +0000 Subject: [PATCH] (property_change_between_p): Test NULL_INTERVAL_P in loop, before looking at next->position. --- src/textprop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/textprop.c b/src/textprop.c index b324217907e..50810e62dfc 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -568,6 +568,8 @@ property_change_between_p (beg, end) while (! NULL_INTERVAL_P (next) && intervals_equal (i, next)) { next = next_interval (next); + if (NULL_INTERVAL_P (next)) + return 0; if (next->position >= end) return 0; } -- 2.39.5