diff options
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/widgets/eab-popup-control.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index e728f2fe5b..d030c77c04 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,10 @@ 2004-04-12 Chris Toshok <toshok@ximian.com> + * gui/widgets/eab-popup-control.c (email_menu_add_option): treat + "" the same as NULL (don't add it to the list). + +2004-04-12 Chris Toshok <toshok@ximian.com> + * gui/component/addressbook.c (addressbook_load_default_book): quiet valgrind uninitialized memory warning. diff --git a/addressbook/gui/widgets/eab-popup-control.c b/addressbook/gui/widgets/eab-popup-control.c index 857034e840..5afddcd3af 100644 --- a/addressbook/gui/widgets/eab-popup-control.c +++ b/addressbook/gui/widgets/eab-popup-control.c @@ -245,7 +245,7 @@ email_menu_add_option (EMailMenu *menu, char *addr) GtkWidget *menu_item; g_return_if_fail (menu != NULL); - if (addr == NULL) + if (!addr || !*addr) return; menu->options = g_list_append (menu->options, addr); |