[GtkSearchEngineQuartz]Don't create file paths from NULL.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user