aboutsummaryrefslogtreecommitdiffstats
path: root/src/textprop.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1993-08-14 04:36:08 +0000
committerRichard M. Stallman <[email protected]>1993-08-14 04:36:08 +0000
commite050ef745ec923e375d790c9355e79d9a86c1966 (patch)
treeb8581fc5b5154103bc49f66e6d16d3a876d78872 /src/textprop.c
parent5843fef34696e776b9605735b1e24c98bfc89b3a (diff)
(property_change_between_p): Test NULL_INTERVAL_P
in loop, before looking at next->position.
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c
index b324217907..50810e62df 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;
}