diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2010-02-22 18:57:38 -0800 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2010-02-22 18:57:38 -0800 |
commit | 5021be477ac96336202b300d9bfd09667cd1fc5e (patch) | |
tree | 71af9377e3e55faff7c2098f98e634bac987b7c7 | |
parent | e2ddca01f36204abd4077079e7f50bc64e6d8226 (diff) | |
download | yelp-5021be477ac96336202b300d9bfd09667cd1fc5e.tar.gz |
prevent NULL dereference
-rw-r--r-- | 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 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 { |