summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Larsson <alexl@redhat.com>2002-02-06 16:52:07 +0000
committerAlexander Larsson <alexl@src.gnome.org>2002-02-06 16:52:07 +0000
commitbc0dd44be46cb013eec59515f588eee947357a3d (patch)
treeacd866f7d6059dc4a63d612154d1eb17d0dfb15d
parentc366fb6cedf4051dd5139c86b74498de825ab481 (diff)
downloadyelp-bc0dd44be46cb013eec59515f588eee947357a3d.tar.gz
Correctly handle the case when gnome_vfs_uri_new() fails.
2002-02-06 Alex Larsson <alexl@redhat.com> * src/yelp-util.c (yelp_util_extract_docpath_from_uri): Correctly handle the case when gnome_vfs_uri_new() fails.
-rw-r--r--ChangeLog5
-rw-r--r--src/yelp-util.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f7d994d2..7bbcde52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-06 Alex Larsson <alexl@redhat.com>
+
+ * src/yelp-util.c (yelp_util_extract_docpath_from_uri):
+ Correctly handle the case when gnome_vfs_uri_new() fails.
+
2002-01-31 Satan <snickell@stanford.edu>
* Makefile.am:
diff --git a/src/yelp-util.c b/src/yelp-util.c
index 8e67b2c2..588bbb41 100644
--- a/src/yelp-util.c
+++ b/src/yelp-util.c
@@ -515,6 +515,8 @@ yelp_util_extract_docpath_from_uri (const gchar *str_uri)
docpath = gnome_vfs_unescape_string (escaped_string,
NULL);
}
+ } else {
+ return NULL;
}
}