diff options
author | Don Scorgie <dscorgie@src.gnome.org> | 2006-05-23 12:22:21 +0000 |
---|---|---|
committer | Don Scorgie <dscorgie@src.gnome.org> | 2006-05-23 12:22:21 +0000 |
commit | 6ec2424947f5a2ee920db0b48d02140fec5f88a4 (patch) | |
tree | b5e523c8d0489bc3f50616b7e7373e98a7e6e7b2 | |
parent | 12417a7d368a0a3189ba405ad79094c5aed4cf0c (diff) | |
download | yelp-6ec2424947f5a2ee920db0b48d02140fec5f88a4.tar.gz |
NULL checking. Suppresses critical warnings on some info pages
* src/yelp-info-parser.c:
NULL checking. Suppresses critical warnings on some info pages
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/yelp-info-parser.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2006-05-23 Don Scorgie <dscorgie@cvs.gnome.org> + * src/yelp-info-parser.c: + NULL checking. Suppresses critical warnings on some info pages + * src/yelp-utils.c: If an info file doesn't exist, default to showing the man page Fixes bug #341627 diff --git a/src/yelp-info-parser.c b/src/yelp-info-parser.c index 4aeca416..51030192 100644 --- a/src/yelp-info-parser.c +++ b/src/yelp-info-parser.c @@ -351,7 +351,7 @@ GtkTreeIter * find_real_sibling (GtkTreeModel *model, gchar *title; gchar *reftitle; - if (!it) + if (!it || !comp) return NULL; r = gtk_tree_iter_copy (it); |