diff options
author | Shaun McCance <shaunm@gnome.org> | 2010-06-09 14:05:00 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2010-06-09 14:05:00 -0500 |
commit | 29fa1f5bd01e27b0599e6966bbe6648c89b8d804 (patch) | |
tree | 705a9e60f33a0bc9698f25e3a118e8e3afd291ff | |
parent | 0a70ece4bab67bbe3b8c59ae75f271e544b60bb0 (diff) | |
download | yelp-29fa1f5bd01e27b0599e6966bbe6648c89b8d804.tar.gz |
[yelp-view] Fix incorrect string, thansk to Rupert Swarbrick, bug #621137
-rw-r--r-- | libyelp/yelp-view.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c index 0689ffac..3a6868c8 100644 --- a/libyelp/yelp-view.c +++ b/libyelp/yelp-view.c @@ -1471,10 +1471,17 @@ uri_resolved (YelpUri *uri, return; case YELP_URI_DOCUMENT_TYPE_NOT_FOUND: struri = yelp_uri_get_canonical_uri (uri); - error = g_error_new (YELP_ERROR, YELP_ERROR_NOT_FOUND, - _("The URI ā%sā does point to a valid page."), - struri); - g_free (struri); + if (struri != NULL) { + error = g_error_new (YELP_ERROR, YELP_ERROR_NOT_FOUND, + _("The URI ā%sā does not point to a valid page."), + struri); + g_free (struri); + } + else { + error = g_error_new (YELP_ERROR, YELP_ERROR_NOT_FOUND, + _("The URI does not point to a valid page."), + struri); + } view_show_error_page (view, error); return; case YELP_URI_DOCUMENT_TYPE_ERROR: |