From 46555f409d6bca48658c4318c144909544545c3d Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 13 Apr 2004 03:02:36 +0000 Subject: treat "" the same as NULL (don't add it to the list). 2004-04-12 Chris Toshok * gui/widgets/eab-popup-control.c (email_menu_add_option): treat "" the same as NULL (don't add it to the list). svn path=/trunk/; revision=25424 --- addressbook/ChangeLog | 5 +++++ addressbook/gui/widgets/eab-popup-control.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index e728f2fe5b..d030c77c04 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2004-04-12 Chris Toshok + + * 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 * gui/component/addressbook.c (addressbook_load_default_book): 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); -- cgit v1.2.3