summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2010-05-13 17:40:55 -0500
committerShaun McCance <shaunm@gnome.org>2010-05-13 17:41:25 -0500
commitfe8c124ed7b2c79aebae05c65803d86ed84a82bd (patch)
tree7228218e774c2d7240021f8e0cf842e7bd19c0f7
parent24e5ad1546ab7daea079eb042ad3a71a45a6f48c (diff)
downloadyelp-fe8c124ed7b2c79aebae05c65803d86ed84a82bd.tar.gz
[libyelp/yelp-uri] Initialize variable to NULL to avoid crash
-rw-r--r--libyelp/yelp-uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c
index 58d137eb..8e0c414c 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, '#');