diff options
| author | Richard M. Stallman | 1993-08-14 04:36:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-08-14 04:36:08 +0000 |
| commit | e050ef745ec923e375d790c9355e79d9a86c1966 (patch) | |
| tree | b8581fc5b5154103bc49f66e6d16d3a876d78872 /src/textprop.c | |
| parent | 5843fef34696e776b9605735b1e24c98bfc89b3a (diff) | |
| download | emacs-e050ef745ec923e375d790c9355e79d9a86c1966.tar.gz emacs-e050ef745ec923e375d790c9355e79d9a86c1966.zip | |
(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.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
| 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 | } |