diff options
author | Don Scorgie <dscorgie@src.gnome.org> | 2006-08-16 17:42:00 +0000 |
---|---|---|
committer | Don Scorgie <dscorgie@src.gnome.org> | 2006-08-16 17:42:00 +0000 |
commit | 47efa342adf01ae37f1fec2fa50645c22853d7fe (patch) | |
tree | 0b6ce1e4e32cb7e03a8f9c7079d90ea5810a6357 | |
parent | 2ed3aa72e9b2e0b4d0c4028b09b6a27ca5c29b97 (diff) | |
download | yelp-47efa342adf01ae37f1fec2fa50645c22853d7fe.tar.gz |
Fix crash when apropos goes nuts (bug #347467) Patch from Priit Laes
* src/yelp-search-pager.c:
Fix crash when apropos goes nuts (bug #347467)
Patch from Priit Laes
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/yelp-search-pager.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-08-16 Don Scorgie <dscorgie@cvs.gnome.org> + + * src/yelp-search-pager.c: + Fix crash when apropos goes nuts (bug #347467) + Patch from Priit Laes + 2006-08-10 Don Scorgie <dscorgie@cvs.gnome.org> * src/yelp-info-parser.c: diff --git a/src/yelp-search-pager.c b/src/yelp-search-pager.c index fedc8ed9..9b47f061 100644 --- a/src/yelp-search-pager.c +++ b/src/yelp-search-pager.c @@ -1870,7 +1870,7 @@ process_man_result (YelpSearchPager *pager, gchar *result, gchar **terms) gchar *title = NULL; /*gint i;*/ - if (line == NULL || line[0] == NULL) + if (line == NULL || line[0] == NULL || line[1] == NULL) continue; title = g_strdup (g_strstrip (line[0])); |