From 34ee55327662437beb97f250feecb2a98c8c177b Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 28 Oct 2001 05:30:29 +0000 Subject: Check item->type != NULL here. Fixes Ximian bug #4668. 2001-10-28 Christopher James Lahey * gal-view-collection.c (load_single_file): Check item->type != NULL here. Fixes Ximian bug #4668. svn path=/trunk/; revision=14278 --- widgets/menus/gal-view-collection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets') 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; } -- cgit v1.2.3