initialize found_match to TRUE to avoid a segfault in certain non-obvious

2000-09-05  Mathieu Lacage  <mathieu@eazel.com>

	* 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.
This commit is contained in:
Mathieu Lacage 2000-09-06 00:36:34 +00:00 committed by Mathieu Lacage
parent 41b4f3f1f1
commit 73fdb18e63

View file

@ -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 */