[GtkSearchEngineQuartz]Don't create file paths from NULL.

This commit is contained in:
John Ralls
2019-03-11 17:55:10 -07:00
parent 75b8abbf24
commit 942a2dede5

View File

@@ -88,6 +88,10 @@ G_DEFINE_TYPE_WITH_PRIVATE (GtkSearchEngineQuartz, _gtk_search_engine_quartz, GT
GtkSearchHit *hit;
result_path = [[result valueForAttribute:@"kMDItemPath"] UTF8String];
if (result_path == NULL)
continue;
file = g_file_new_for_path (result_path);
hit = g_new (GtkSearchHit, 1);