From 5021be477ac96336202b300d9bfd09667cd1fc5e Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 22 Feb 2010 18:57:38 -0800 Subject: prevent NULL dereference --- libyelp/yelp-uri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c index 287f5a13..16d24f38 100644 --- a/libyelp/yelp-uri.c +++ b/libyelp/yelp-uri.c @@ -483,7 +483,7 @@ resolve_file_path (YelpUri *uri) if (priv->res_arg[0] == '/') { priv->gfile = g_file_new_for_path (path); } - else if (base_priv->gfile) { + else if (base_priv && base_priv->gfile) { priv->gfile = g_file_resolve_relative_path (base_priv->gfile, path); } else { -- cgit v1.2.1