[gnome-photos] 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] utils: Check the RDF type before using it, not the MIME type
- Date: Wed, 24 Jan 2018 19:49:25 +0000 (UTC)
commit 5bbd5a784edb153c651e8a12ea8d8dbc381adaab
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 a0bb452e..cc2f8e78 100644
--- a/src/photos-utils.c
+++ b/src/photos-utils.c
@@ -494,7 +494,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]