From 10f47690eadd529f04db7ecd9f0a4b39cfec3fd7 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 23 Oct 2001 19:31:56 +0000 Subject: [PATCH] handle case where offset == 0 and char_len == 0, bug #61729 2001-10-23 Havoc Pennington * gtk/gtktextiter.c (test_log_attrs): handle case where offset == 0 and char_len == 0, bug #61729 --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtktextiter.c | 2 +- 8 files changed, 36 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 28cd96981f..9117747910 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (test_log_attrs): handle case where offset == + 0 and char_len == 0, bug #61729 + 2001-10-23 Havoc Pennington * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 28cd96981f..9117747910 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (test_log_attrs): handle case where offset == + 0 and char_len == 0, bug #61729 + 2001-10-23 Havoc Pennington * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 28cd96981f..9117747910 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (test_log_attrs): handle case where offset == + 0 and char_len == 0, bug #61729 + 2001-10-23 Havoc Pennington * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 28cd96981f..9117747910 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (test_log_attrs): handle case where offset == + 0 and char_len == 0, bug #61729 + 2001-10-23 Havoc Pennington * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 28cd96981f..9117747910 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (test_log_attrs): handle case where offset == + 0 and char_len == 0, bug #61729 + 2001-10-23 Havoc Pennington * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 28cd96981f..9117747910 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (test_log_attrs): handle case where offset == + 0 and char_len == 0, bug #61729 + 2001-10-23 Havoc Pennington * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 28cd96981f..9117747910 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (test_log_attrs): handle case where offset == + 0 and char_len == 0, bug #61729 + 2001-10-23 Havoc Pennington * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c index dbded85866..42e5678ee7 100644 --- a/gtk/gtktextiter.c +++ b/gtk/gtktextiter.c @@ -2869,7 +2869,7 @@ test_log_attrs (const GtkTextIter *iter, * for one past the end */ - if (offset <= char_len) + if (attrs && offset <= char_len) result = (* func) (attrs, offset, 0, char_len); return result;