[tracker/wip/sam/resource: 7/8] squash! Use TrackerResource instead of TrackerSparqlBuilder in all extractors



commit b387ad84b364c540cccd7716b6047c3b3d11c893
Author: Sam Thursfield <sam afuera me uk>
Date:   Sat Jun 11 01:43:44 2016 +0100

    squash! Use TrackerResource instead of TrackerSparqlBuilder in all extractors
    
    Fix crash in libav extractor due to use of uninitialized memory

 src/tracker-extract/tracker-extract-libav.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-libav.c b/src/tracker-extract/tracker-extract-libav.c
index 92a2d9c..4e9ec88 100644
--- a/src/tracker-extract/tracker-extract-libav.c
+++ b/src/tracker-extract/tracker-extract-libav.c
@@ -137,8 +137,8 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
 
        } else if (audio_stream) {
                TrackerResource *album_artist = NULL, *performer = NULL;
-               char *album_artist_name;
-               char *album_title;
+               char *album_artist_name = NULL;
+               char *album_title = NULL;
 
                tracker_resource_set_uri (metadata, "rdf:type", "nmm:MusicPiece");
                tracker_resource_add_uri (metadata, "rdf:type", "nfo:Audio");


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