Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
4613:eb2af4aa80e4 | 4614:2c5557903994 |
---|---|
566 | 566 |
567 next = next_interval (i); | 567 next = next_interval (i); |
568 while (! NULL_INTERVAL_P (next) && intervals_equal (i, next)) | 568 while (! NULL_INTERVAL_P (next) && intervals_equal (i, next)) |
569 { | 569 { |
570 next = next_interval (next); | 570 next = next_interval (next); |
571 if (NULL_INTERVAL_P (next)) | |
572 return 0; | |
571 if (next->position >= end) | 573 if (next->position >= end) |
572 return 0; | 574 return 0; |
573 } | 575 } |
574 | 576 |
575 if (NULL_INTERVAL_P (next)) | 577 if (NULL_INTERVAL_P (next)) |