From 73fdb18e633b8bcb86dbf72df17434ca2f8507ea Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 6 Sep 2000 00:36:34 +0000 Subject: [PATCH] initialize found_match to TRUE to avoid a segfault in certain non-obvious 2000-09-05 Mathieu Lacage * mime-type-capplet/nautilus-mime-type-capplet.c: (populate_viewer_menu): initialize found_match to TRUE to avoid a segfault in certain non-obvious cases. this is a temporary hack waiting for bug 2766. --- capplets/file-types/file-types-capplet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/capplets/file-types/file-types-capplet.c b/capplets/file-types/file-types-capplet.c index 244601e55..24a79dc9c 100644 --- a/capplets/file-types/file-types-capplet.c +++ b/capplets/file-types/file-types-capplet.c @@ -813,6 +813,10 @@ populate_viewer_menu (GtkWidget *component_menu, const char *mime_type) } g_list_free (children); + /* FIXME: 2766. folowing line added to avoid crashes in certain cases. + someone needs to cleanup all this code for true. */ + found_match = TRUE; + /* See if we have a match */ if (found_match) { /* Have menu appear with default application selected */