Commit 503db566 authored by Harald Judt's avatar Harald Judt

Coverity CID 60617: Unchecked return value

CID 60617 (#1 of 1): Unchecked return value (CHECKED_RETURN)
1. check_return: Calling gtk_tree_model_get_iter_first without
checking return value (as is done elsewhere 4 out of 5 times).
parent a32265e1
......@@ -981,7 +981,8 @@ thunar_shortcuts_view_context_menu_visibility (ThunarShortcutsView *view,
/* process all items below the header */
child_model = gtk_tree_model_filter_get_model (GTK_TREE_MODEL_FILTER (model));
gtk_tree_model_get_iter_first (GTK_TREE_MODEL (child_model), &iter);
if (!gtk_tree_model_get_iter_first (GTK_TREE_MODEL (child_model), &iter))
path = gtk_tree_model_get_path (child_model, &iter);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment