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:
parent
41b4f3f1f1
commit
73fdb18e63
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue