[tracker] libtracker-extract: Initialize string as NULL



commit a3c34dcf2d807af21f37784b62e774f80141cbcf
Author: Ivan Frade <ivan frade gmail com>
Date:   Thu Oct 13 13:09:43 2011 +0300

    libtracker-extract: Initialize string as NULL
    
    The pointer is used and shared later without any check. No know bug
    about it and tests pass fine before and after.

 src/libtracker-extract/tracker-extract-info.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-extract-info.c b/src/libtracker-extract/tracker-extract-info.c
index d5d9462..a624301 100644
--- a/src/libtracker-extract/tracker-extract-info.c
+++ b/src/libtracker-extract/tracker-extract-info.c
@@ -82,6 +82,8 @@ tracker_extract_info_new (GFile       *file,
 	info->postupdate = tracker_sparql_builder_new_update ();
 	info->metadata = tracker_sparql_builder_new_embedded_insert ();
 
+        info->where_clause = NULL;
+
 	info->ref_count = 1;
 
 	return info;



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