[yelp] [libyelp/yelp-uri] Initialize variable to NULL to avoid crash



commit fe8c124ed7b2c79aebae05c65803d86ed84a82bd
Author: Shaun McCance <shaunm gnome org>
Date:   Thu May 13 17:40:55 2010 -0500

    [libyelp/yelp-uri] Initialize variable to NULL to avoid crash

 libyelp/yelp-uri.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c
index 58d137e..8e0c414 100644
--- a/libyelp/yelp-uri.c
+++ b/libyelp/yelp-uri.c
@@ -463,7 +463,7 @@ resolve_file_uri (YelpUri *uri)
 static void
 resolve_file_path (YelpUri *uri)
 {
-    YelpUriPrivate *base_priv;
+    YelpUriPrivate *base_priv = NULL;
     YelpUriPrivate *priv = GET_PRIV (uri);
     gchar *path;
     const gchar *hash = strchr (priv->res_arg, '#');



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