[tracker-miners/wip/carlosg/coverity-fixes: 2/11] tracker-writeback: Fix typo in code




commit 9ee98423d649bb0ee92947daa9d8cc06de81e903
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Sep 7 18:33:50 2020 +0200

    tracker-writeback: Fix typo in code
    
    We are looking the nie:url property in the wrong resource. Amazingly,
    spotted by Coverity.
    
    CID: #359689

 src/tracker-writeback/tracker-writeback-gstreamer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker-writeback/tracker-writeback-gstreamer.c 
b/src/tracker-writeback/tracker-writeback-gstreamer.c
index 546de6019..21be79872 100644
--- a/src/tracker-writeback/tracker-writeback-gstreamer.c
+++ b/src/tracker-writeback/tracker-writeback-gstreamer.c
@@ -794,7 +794,7 @@ writeback_gstreamer_write_file_metadata (TrackerWritebackFile  *writeback,
                                file = tracker_resource_get_first_relation (image, "nie:isStoredAs");
 
                        if (file)
-                               artwork_url = tracker_resource_get_first_string (image, "nie:url");
+                               artwork_url = tracker_resource_get_first_string (file, "nie:url");
 
                        if (artwork_url) {
                                g_value_init (&val, G_TYPE_STRING);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]