diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index c2fe884e0e..c66c20c692 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -313,7 +313,7 @@ node_should_be_visible (GtkFileSystemModel *model, guint id) if (required & GTK_FILE_FILTER_FILENAME) { filename = g_file_get_path (node->file); - if (filter_info.filename) + if (filename) { filter_info.filename = filename; filter_info.contains |= GTK_FILE_FILTER_FILENAME;