[tracker] Initialize GErrors to NULL



commit ff9801f5f351f2e47d6c6ee56006dd963422ea9b
Author: Ivan Frade <ivan frade nokia com>
Date:   Fri Sep 25 01:45:56 2009 +0300

    Initialize GErrors to NULL

 utils/services/ttl_loader.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/utils/services/ttl_loader.c b/utils/services/ttl_loader.c
index 0e9a861..250090b 100644
--- a/utils/services/ttl_loader.c
+++ b/utils/services/ttl_loader.c
@@ -226,7 +226,7 @@ ttl_loader_load_ontology (const gchar *ttl_file)
 
         if (ttl_file) {
 		TrackerTurtleReader *reader;
-		GError *error;
+		GError *error = NULL;
 
 		reader = tracker_turtle_reader_new (ttl_file);
 
@@ -255,7 +255,7 @@ ttl_loader_load_description (const gchar *filename)
 {
 	OntologyDescription *desc;
 	TrackerTurtleReader *reader;
-	GError *error;
+	GError *error = NULL;
 
 	desc = ttl_model_description_new ();
 



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