diff src/textprop.c @ 4614:2c5557903994

(property_change_between_p): Test NULL_INTERVAL_P in loop, before looking at next->position.
author Richard M. Stallman <rms@gnu.org>
date Sat, 14 Aug 1993 04:36:08 +0000
parents b0556af4d680
children 8b11bee2bcb4
line wrap: on
line diff
--- a/src/textprop.c	Sat Aug 14 03:50:26 1993 +0000
+++ b/src/textprop.c	Sat Aug 14 04:36:08 1993 +0000
@@ -568,6 +568,8 @@
   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;
     }