aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-28 13:30:29 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-28 13:30:29 +0800
commit34ee55327662437beb97f250feecb2a98c8c177b (patch)
tree914daf3a0c47df7cced3c855d789807e8ffec3ca /widgets/menus
parent19c8e44cfa20eb29681e4bccf8d441b225edb52d (diff)
downloadgsoc2013-evolution-34ee55327662437beb97f250feecb2a98c8c177b.tar
gsoc2013-evolution-34ee55327662437beb97f250feecb2a98c8c177b.tar.gz
gsoc2013-evolution-34ee55327662437beb97f250feecb2a98c8c177b.tar.bz2
gsoc2013-evolution-34ee55327662437beb97f250feecb2a98c8c177b.tar.lz
gsoc2013-evolution-34ee55327662437beb97f250feecb2a98c8c177b.tar.xz
gsoc2013-evolution-34ee55327662437beb97f250feecb2a98c8c177b.tar.zst
gsoc2013-evolution-34ee55327662437beb97f250feecb2a98c8c177b.zip
Check item->type != NULL here. Fixes Ximian bug #4668.
2001-10-28 Christopher James Lahey <clahey@ximian.com> * gal-view-collection.c (load_single_file): Check item->type != NULL here. Fixes Ximian bug #4668. svn path=/trunk/; revision=14278
Diffstat (limited to 'widgets/menus')
-rw-r--r--widgets/menus/gal-view-collection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c
index fc946c84e8..fe555ee5bd 100644
--- a/widgets/menus/gal-view-collection.c
+++ b/widgets/menus/gal-view-collection.c
@@ -278,7 +278,7 @@ load_single_file (GalViewCollection *collection,
factory = NULL;
for (factories = collection->factory_list; factories; factories = factories->next) {
- if (!strcmp(gal_view_factory_get_type_code(factories->data), item->type)) {
+ if (item->type && !strcmp(gal_view_factory_get_type_code(factories->data), item->type)) {
factory = factories->data;
break;
}