File gnome-photos-Check-RDF-type-before-using-it.patch of Package gnome-photos.9281
From 6d8bbd5b02885f2c0def8e0e4b1daefd76164ebe Mon Sep 17 00:00:00 2001
From: Debarshi Ray <debarshir@gnome.org>
Date: Wed, 24 Jan 2018 20:29:18 +0100
Subject: [PATCH] utils: Check the RDF type before using it, not the MIME type
---
src/photos-utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/photos-utils.c b/src/photos-utils.c
index a9d8f13..12ff40f 100644
--- a/src/photos-utils.c
+++ b/src/photos-utils.c
@@ -470,7 +470,7 @@ photos_utils_get_icon_from_cursor (TrackerSparqlCursor *cursor)
goto out;
rdf_type = tracker_sparql_cursor_get_string (cursor, PHOTOS_QUERY_COLUMNS_RDF_TYPE, NULL);
- if (mime_type != NULL)
+ if (rdf_type != NULL)
icon = photos_utils_icon_from_rdf_type (rdf_type);
if (icon != NULL)
--
libgit2 0.26.0