We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fa692c commit 287075bCopy full SHA for 287075b
libnemo-private/nemo-search-engine-advanced.c
@@ -1032,9 +1032,13 @@ search_thread_func (gpointer user_data)
1032
(dir = g_queue_pop_head (data->directories)) != NULL) {
1033
1034
if (!toplevel) {
1035
- if (g_hash_table_contains (data->skip_folders, g_file_peek_path (dir))) {
1036
- g_object_unref (dir);
1037
- continue;
+ const gchar *path = g_file_peek_path (dir);
+
+ if (path != NULL) {
1038
+ if (g_hash_table_contains (data->skip_folders, path)) {
1039
+ g_object_unref (dir);
1040
+ continue;
1041
+ }
1042
}
1043
1044
g_autofree gchar *filename = NULL;
0 commit comments