Commit 942a2ded authored by John Ralls's avatar John Ralls

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

parent 75b8abbf
Pipeline #67455 passed with stage
in 10 minutes and 7 seconds
......@@ -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);
......
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