[yelp] [yelp-mallard.c] Initialize id to NULL to avoid spurious free



commit e58f7df94613f66a32261a3f360f0a5723d67d66
Author: Shaun McCance <shaunm gnome org>
Date:   Sun Jun 21 20:45:13 2009 -0500

    [yelp-mallard.c] Initialize id to NULL to avoid spurious free

 src/yelp-mallard.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/yelp-mallard.c b/src/yelp-mallard.c
index f372b88..30c5208 100644
--- a/src/yelp-mallard.c
+++ b/src/yelp-mallard.c
@@ -390,7 +390,7 @@ static void
 mallard_page_data_walk (MallardPageData *page_data)
 {
     xmlParserCtxtPtr parserCtxt = NULL;
-    xmlChar *id;
+    xmlChar *id = NULL;
 
     if (page_data->cur == NULL) {
         parserCtxt = xmlNewParserCtxt ();



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