Only build destination data if we have destination != NULL. Fixes crash of

2001-10-03    <NotZed@Ximian.com>

        * mail-send-recv.c (build_dialogue): Only build destination data
        if we have destination != NULL.  Fixes crash of bug #10835.

svn path=/trunk/; revision=13400
This commit is contained in:
3
2001-10-04 00:58:44 +00:00
committed by Michael Zucci
parent f4742f2892
commit 7f5f136bf3
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2001-10-03 <NotZed@Ximian.com>
* mail-send-recv.c (build_dialogue): Only build destination data
if we have destination != NULL. Fixes crash of bug #10835.
* folder-browser.c (folder_browser_config_search): Set 'to' ->
'recipient' data for search object. #6199.

View File

@ -358,7 +358,7 @@ build_dialogue (GSList *sources, CamelFolder *outbox, const char *destination)
row++;
gtk_widget_show_all (GTK_WIDGET (table));
if (outbox) {
if (outbox && destination) {
info = g_hash_table_lookup (data->active, destination);
if (info == NULL) {
info = g_malloc0 (sizeof (*info));