[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r16710 - gnunet-gtk/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r16710 - gnunet-gtk/src/fs |
Date: |
Tue, 6 Sep 2011 11:10:17 +0200 |
Author: grothoff
Date: 2011-09-06 11:10:17 +0200 (Tue, 06 Sep 2011)
New Revision: 16710
Modified:
gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c
Log:
adding more error checking to help debug #1761
Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c 2011-09-06 03:13:55 UTC
(rev 16709)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c 2011-09-06 09:10:17 UTC
(rev 16710)
@@ -1487,9 +1487,17 @@
GNUNET_break (0);
return;
}
+ GNUNET_assert (sr->rr != NULL);
tp = gtk_tree_row_reference_get_path (sr->rr);
+ GNUNET_assert (tp != NULL);
tm = gtk_tree_row_reference_get_model (sr->rr);
- gtk_tree_model_get_iter (tm, &iter, tp);
+ GNUNET_assert (tm != NULL);
+ if (TRUE != gtk_tree_model_get_iter (tm, &iter, tp))
+ {
+ GNUNET_break (0);
+ gtk_tree_path_free (tp);
+ return;
+ }
gtk_tree_path_free (tp);
gtk_tree_model_get (tm, &iter, 0, &meta, 1, &uri, -1);
if (uri != NULL)
@@ -1497,7 +1505,7 @@
if (meta != NULL)
GNUNET_CONTAINER_meta_data_destroy (meta);
gtk_tree_row_reference_free (sr->rr);
- gtk_tree_store_remove (GTK_TREE_STORE (tm), &iter);
+ (void) gtk_tree_store_remove (GTK_TREE_STORE (tm), &iter);
GNUNET_free (sr);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r16710 - gnunet-gtk/src/fs,
gnunet <=