aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-23 16:20:40 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-23 16:20:40 +0000
commitdd69238ac1ede56cd21f46799f10fe251f36cd25 (patch)
tree890568b5d201d5f8f43c4548899f430118001e77
parent6f368a3a7ca7702e3c46a2b2aa3e094b6a606824 (diff)
downloadgnunet-gtk-dd69238ac1ede56cd21f46799f10fe251f36cd25.tar.gz
gnunet-gtk-dd69238ac1ede56cd21f46799f10fe251f36cd25.zip
-check return value
-rw-r--r--src/fs/gnunet-fs-gtk-event_handler.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk-event_handler.c b/src/fs/gnunet-fs-gtk-event_handler.c
index 33b9f147..23129eb6 100644
--- a/src/fs/gnunet-fs-gtk-event_handler.c
+++ b/src/fs/gnunet-fs-gtk-event_handler.c
@@ -782,7 +782,12 @@ search_list_on_menu (GtkWidget * widget, GdkEvent * event, gpointer user_data)
782 return FALSE; 782 return FALSE;
783 } 783 }
784 tm = gtk_tree_view_get_model (tv); 784 tm = gtk_tree_view_get_model (tv);
785 gtk_tree_model_get_iter (tm, &iter, path); 785 if (TRUE != gtk_tree_model_get_iter (tm, &iter, path))
786 {
787 /* model empty? */
788 current_context_search_tab = NULL;
789 return FALSE;
790 }
786 gtk_tree_model_get (tm, &iter, 9, &sr, -1); 791 gtk_tree_model_get (tm, &iter, 9, &sr, -1);
787 current_context_row_reference = gtk_tree_row_reference_new (tm, path); 792 current_context_row_reference = gtk_tree_row_reference_new (tm, path);
788 gtk_tree_path_free (path); 793 gtk_tree_path_free (path);