summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Scorgie <dscorgie@src.gnome.org>2006-05-23 12:22:21 +0000
committerDon Scorgie <dscorgie@src.gnome.org>2006-05-23 12:22:21 +0000
commit6ec2424947f5a2ee920db0b48d02140fec5f88a4 (patch)
treeb5e523c8d0489bc3f50616b7e7373e98a7e6e7b2
parent12417a7d368a0a3189ba405ad79094c5aed4cf0c (diff)
downloadyelp-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--ChangeLog3
-rw-r--r--src/yelp-info-parser.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a5f99ec8..8512c791 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);