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/gui/widgets/eab-popup-control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/gui/widgets') 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