diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-23 16:07:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-23 16:07:05 +0000 |
commit | 1bbfbf79152a783e95ec6e7507d7f31602999363 (patch) | |
tree | 1b5f62b9e40d83b66de005d1434e57aad349f21a | |
parent | c3f3fb87a1e53f0c683423af20e965d621530c9d (diff) | |
download | gnunet-gtk-1bbfbf79152a783e95ec6e7507d7f31602999363.tar.gz gnunet-gtk-1bbfbf79152a783e95ec6e7507d7f31602999363.zip |
-check return values
-rw-r--r-- | src/fs/gnunet-fs-gtk-event_handler.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk-event_handler.c b/src/fs/gnunet-fs-gtk-event_handler.c index bae6a632..33b9f147 100644 --- a/src/fs/gnunet-fs-gtk-event_handler.c +++ b/src/fs/gnunet-fs-gtk-event_handler.c | |||
@@ -495,7 +495,17 @@ download_lost_parent (struct DownloadEntry *de, uint64_t size, | |||
495 | tm_old = gtk_tree_row_reference_get_model (rr_old); | 495 | tm_old = gtk_tree_row_reference_get_model (rr_old); |
496 | path = gtk_tree_row_reference_get_path (rr_old); | 496 | path = gtk_tree_row_reference_get_path (rr_old); |
497 | gtk_tree_row_reference_free (rr_old); | 497 | gtk_tree_row_reference_free (rr_old); |
498 | gtk_tree_model_get_iter (tm_old, &iter_old, path); | 498 | if (NULL == path) |
499 | { | ||
500 | GNUNET_break (0); | ||
501 | return NULL; | ||
502 | } | ||
503 | if (TRUE != gtk_tree_model_get_iter (tm_old, &iter_old, path)) | ||
504 | { | ||
505 | GNUNET_break (0); | ||
506 | gtk_tree_path_free (path); | ||
507 | return NULL; | ||
508 | } | ||
499 | gtk_tree_path_free (path); | 509 | gtk_tree_path_free (path); |
500 | move_children (tm_old, &iter_old, model, &iter); | 510 | move_children (tm_old, &iter_old, model, &iter); |
501 | while (TRUE == gtk_tree_model_iter_children (model, &child, &iter)) | 511 | while (TRUE == gtk_tree_model_iter_children (model, &child, &iter)) |