[anjuta] symbol-db: Fixed couple of warnings.
- From: Naba Kumar <naba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db: Fixed couple of warnings.
- Date: Mon, 22 Mar 2010 15:05:00 +0000 (UTC)
commit ae4997b901c71c1b501d8a51a68b22554f355bdb
Author: Naba Kumar <naba gnome org>
Date: Mon Mar 22 11:33:35 2010 +0200
symbol-db: Fixed couple of warnings.
plugins/symbol-db/symbol-db-model.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-model.c b/plugins/symbol-db/symbol-db-model.c
index 7abdf7d..58fa57d 100644
--- a/plugins/symbol-db/symbol-db-model.c
+++ b/plugins/symbol-db/symbol-db-model.c
@@ -653,13 +653,17 @@ symbol_db_model_iter_children (GtkTreeModel *tree_model,
{
symbol_db_model_page_fault (SYMBOL_DB_MODEL (tree_model),
parent_node, offset);
+ node = symbol_db_model_node_get_child (parent_node, offset);
if (node)
symbol_db_model_ensure_node_children (SYMBOL_DB_MODEL (tree_model),
node, FALSE);
}
g_return_val_if_fail (node != NULL, FALSE);
}
- g_return_val_if_fail (node->n_children > 0, FALSE);
+
+ /* View trying to access children of childless node seems typical */
+ if (node->n_children <= 0)
+ return FALSE;
iter->user_data = node;
iter->user_data2 = GINT_TO_POINTER (0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]