[yelp/yelp-3-0] prevent NULL dereference



commit 5021be477ac96336202b300d9bfd09667cd1fc5e
Author: Saleem Abdulrasool <compnerd compnerd org>
Date:   Mon Feb 22 18:57:38 2010 -0800

    prevent NULL dereference

 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 287f5a1..16d24f3 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 {



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