[tracker/anonymous-file-nodes] tracker-extract: Nullify out variables before extracting metadata.



commit bbf51dbcde6f08747914f4f4bbe23519effdf7dc
Author: Carlos Garnacho <carlos lanedo com>
Date:   Wed Feb 3 16:22:11 2010 +0100

    tracker-extract: Nullify out variables before extracting metadata.
    
    In case of error, NULL TrackerSparqlBuilders will be returned by
    get_file_metadata().

 src/tracker-extract/tracker-extract.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index 015bac2..f4f4eee 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -223,6 +223,9 @@ get_file_metadata (TrackerExtract         *extract,
 
 	priv = TRACKER_EXTRACT_GET_PRIVATE (extract);
 
+	*preupdate_out = NULL;
+	*statements_out = NULL;
+
 	/* Create sparql builders to send back */
 	preupdate = tracker_sparql_builder_new_update ();
 	statements = tracker_sparql_builder_new_embedded_insert ();



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