Get rid of a compiler warning.

svn path=/trunk/; revision=3881
This commit is contained in:
Ettore Perazzoli
2000-07-04 02:33:15 +00:00
parent 4ae033dd39
commit e21b797d83
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2000-07-03 Ettore Perazzoli <ettore@helixcode.com>
* component-factory.c (create_folder): Get rid of a compiler
warning by making sure `folder' is always initialized to some
value for any code path.
2000-07-03 Dan Winship <danw@helixcode.com>
* message-list.c (select_msg): call mail_display_set_message with

View File

@ -126,12 +126,16 @@ create_folder (EvolutionShellComponent *shell_component,
folder = camel_store_get_folder (store, "mbox",
TRUE, &ex);
gtk_object_unref (GTK_OBJECT (store));
} else {
folder = NULL;
}
if (!camel_exception_is_set (&ex)) {
gtk_object_unref (GTK_OBJECT (folder));
result = Evolution_ShellComponentListener_OK;
} else
} else {
result = Evolution_ShellComponentListener_INVALID_URI;
}
}
camel_exception_clear (&ex);