[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r20707 - gnunet-gtk/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r20707 - gnunet-gtk/src/fs |
Date: |
Fri, 23 Mar 2012 10:52:48 +0100 |
Author: grothoff
Date: 2012-03-23 10:52:47 +0100 (Fri, 23 Mar 2012)
New Revision: 20707
Modified:
gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c
Log:
-cleaner error handling
Modified: gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c 2012-03-23 09:30:35 UTC
(rev 20706)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c 2012-03-23 09:52:47 UTC
(rev 20707)
@@ -2234,8 +2234,15 @@
de->sr = NULL;
}
while (gtk_tree_model_iter_next (tm, &child));
- GNUNET_break (NULL != de->sr);
- de->sr->download = de;
+ if (NULL == de->sr)
+ {
+ /* child not found, what's going on!? */
+ GNUNET_break (0);
+ }
+ else
+ {
+ de->sr->download = de;
+ }
}
gtk_tree_path_free (path);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r20707 - gnunet-gtk/src/fs,
gnunet <=