[anjuta/gnome-3-0] symbol-db: First check for non-Null pointer before accessing child
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gnome-3-0] symbol-db: First check for non-Null pointer before accessing child
- Date: Thu, 19 May 2011 06:43:02 +0000 (UTC)
commit 774ae5b598b73154518d28542de686edb40de8e1
Author: Johannes Schmid <jhs gnome org>
Date: Thu May 19 08:41:55 2011 +0200
symbol-db: First check for non-Null pointer before accessing child
Should fix rh#705958
plugins/symbol-db/symbol-db-model.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-model.c b/plugins/symbol-db/symbol-db-model.c
index a8348e0..64cf5bd 100644
--- a/plugins/symbol-db/symbol-db-model.c
+++ b/plugins/symbol-db/symbol-db-model.c
@@ -468,8 +468,8 @@ sdb_model_iter_is_valid (GtkTreeModel *model, GtkTreeIter *iter)
gint offset;
g_return_val_if_fail (SYMBOL_DB_IS_MODEL (model), FALSE);
- g_return_val_if_fail (iter->stamp == SYMBOL_DB_MODEL_STAMP, FALSE);
g_return_val_if_fail (iter != NULL, FALSE);
+ g_return_val_if_fail (iter->stamp == SYMBOL_DB_MODEL_STAMP, FALSE);
parent_node = (SymbolDBModelNode*) iter->user_data;
offset = GPOINTER_TO_INT (iter->user_data2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]