[anjuta] symbol-db: Fixed stupid warnings
- From: Naba Kumar <naba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db: Fixed stupid warnings
- Date: Fri, 26 Mar 2010 21:39:27 +0000 (UTC)
commit b039b51dd1c0266b24fb1992e2b434716835aeb3
Author: Naba Kumar <naba gnome org>
Date: Fri Mar 26 23:39:12 2010 +0200
symbol-db: Fixed stupid warnings
plugins/symbol-db/symbol-db-model.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-model.c b/plugins/symbol-db/symbol-db-model.c
index 865a09c..b86cfbd 100644
--- a/plugins/symbol-db/symbol-db-model.c
+++ b/plugins/symbol-db/symbol-db-model.c
@@ -173,7 +173,10 @@ symbol_db_model_node_set_child (SymbolDBModelNode *node, gint child_offset,
/* If children nodes array hasn't been allocated, now is the time */
if (!node->children)
node->children = g_new0 (SymbolDBModelNode*, node->n_children);
- g_warn_if_fail (node->children[child_offset] == NULL);
+ if (val)
+ {
+ g_warn_if_fail (node->children[child_offset] == NULL);
+ }
node->children[child_offset] = val;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]