[tracker] Fixed ontology-graph inserting into an uninitialised GList



commit 30a25c155a5f0b36ac95ffd960d7a15f4842af1f
Author: Martyn Russell <martyn lanedo com>
Date:   Fri Dec 18 11:25:05 2009 +0000

    Fixed ontology-graph inserting into an uninitialised GList

 docs/tools/ontology-graph.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/docs/tools/ontology-graph.c b/docs/tools/ontology-graph.c
index 89de856..3ae20c1 100644
--- a/docs/tools/ontology-graph.c
+++ b/docs/tools/ontology-graph.c
@@ -305,6 +305,8 @@ load_ontology_dir (GFile *dir)
                 return FALSE;
         }
 
+        files = NULL;
+
         while ((info = g_file_enumerator_next_file (enumerator, NULL, NULL)) != NULL) {
                 name = g_file_info_get_name (info);
 



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