[gnome-photos/gnome-3-26] utils: Check the RDF type before using it, not the MIME type
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/gnome-3-26] utils: Check the RDF type before using it, not the MIME type
- Date: Wed, 24 Jan 2018 22:29:23 +0000 (UTC)
commit 6d8bbd5b02885f2c0def8e0e4b1daefd76164ebe
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jan 24 20:29:18 2018 +0100
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 a9d8f133..12ff40f7 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]