[gtk/gtk-3-24] [GtkSearchEngineQuartz]Don't create file paths from NULL.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24] [GtkSearchEngineQuartz]Don't create file paths from NULL.
- Date: Tue, 12 Mar 2019 01:03:47 +0000 (UTC)
commit 942a2dede5b47fd5e226db1c89875e1bbff350ca
Author: John Ralls <jralls ceridwen us>
Date: Mon Mar 11 17:55:10 2019 -0700
[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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]