From 942a2dede5b47fd5e226db1c89875e1bbff350ca Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 11 Mar 2019 17:55:10 -0700 Subject: [PATCH] [GtkSearchEngineQuartz]Don't create file paths from NULL. --- gtk/gtksearchenginequartz.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtksearchenginequartz.c b/gtk/gtksearchenginequartz.c index c260b51025..60d7b62c22 100644 --- a/gtk/gtksearchenginequartz.c +++ b/gtk/gtksearchenginequartz.c @@ -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);