[gedit] Do not include NULL in the settings storing.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Do not include NULL in the settings storing.
- Date: Sun, 9 May 2010 14:34:15 +0000 (UTC)
commit efa54f10efa576825dbf3df235feea36f4657659
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun May 9 16:33:48 2010 +0200
Do not include NULL in the settings storing.
gedit/gedit-history-entry.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-history-entry.c b/gedit/gedit-history-entry.c
index 1fd75fe..cfd45bc 100644
--- a/gedit/gedit-history-entry.c
+++ b/gedit/gedit-history-entry.c
@@ -204,8 +204,8 @@ get_history_items (GeditHistoryEntry *entry,
n_children = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (store),
&iter);
- *len = n_children + 1;
- array = g_ptr_array_sized_new (*len);
+ *len = n_children;
+ array = g_ptr_array_sized_new (*len + 1);
while (valid)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]