]> git.eshelyaron.com Git - emacs.git/commitdiff
(property_change_between_p): Test NULL_INTERVAL_P
authorRichard M. Stallman <rms@gnu.org>
Sat, 14 Aug 1993 04:36:08 +0000 (04:36 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 14 Aug 1993 04:36:08 +0000 (04:36 +0000)
in loop, before looking at next->position.

src/textprop.c

index b324217907e766b0b2cb70c3f9bf8a47096e556a..50810e62dfc9898eca0e3d160564d789eb414d53 100644 (file)
@@ -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;
     }