[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34691 - gnunet-gtk/src/namestore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34691 - gnunet-gtk/src/namestore |
Date: |
Fri, 19 Dec 2014 14:58:01 +0100 |
Author: grothoff
Date: 2014-12-19 14:58:01 +0100 (Fri, 19 Dec 2014)
New Revision: 34691
Modified:
gnunet-gtk/src/namestore/gnunet-namestore-gtk.c
Log:
-check return values
Modified: gnunet-gtk/src/namestore/gnunet-namestore-gtk.c
===================================================================
--- gnunet-gtk/src/namestore/gnunet-namestore-gtk.c 2014-12-19 13:33:26 UTC
(rev 34690)
+++ gnunet-gtk/src/namestore/gnunet-namestore-gtk.c 2014-12-19 13:58:01 UTC
(rev 34691)
@@ -1753,7 +1753,11 @@
GNS_TYPE_TO_NAME_LISTSTORE_COLUMN_TYPE, &type,
-1);
/* check if this is a new record */
- gtk_tree_model_get_iter_from_string (tm, &it, path_string);
+ if (! gtk_tree_model_get_iter_from_string (tm, &it, path_string))
+ {
+ GNUNET_break (0);
+ return;
+ }
gtk_tree_model_get (tm, &it,
GNS_TREESTORE_COL_NAME, &name_str,
-1);
@@ -1808,7 +1812,11 @@
gdk_beep ();
return;
}
- gtk_tree_model_get_iter_from_string (tm, &it, path);
+ if (! gtk_tree_model_get_iter_from_string (tm, &it, path))
+ {
+ GNUNET_break (0);
+ return;
+ }
gtk_tree_model_get (tm, &it,
GNS_TREESTORE_COL_NOT_DUMMY_ROW, ¬_dummy,
GNS_TREESTORE_COL_NAME, &name,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34691 - gnunet-gtk/src/namestore,
gnunet <=