diff options
author | Chris Toshok <toshok@ximian.com> | 2004-04-13 11:02:36 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-04-13 11:02:36 +0800 |
commit | 46555f409d6bca48658c4318c144909544545c3d (patch) | |
tree | 6e3c633508e3edfe48145dc181e808f2db6cae9d /addressbook | |
parent | 43c722efc03e2f12f59824b95b4d09e780fbe1e1 (diff) | |
download | gsoc2013-evolution-46555f409d6bca48658c4318c144909544545c3d.tar.gz gsoc2013-evolution-46555f409d6bca48658c4318c144909544545c3d.tar.zst gsoc2013-evolution-46555f409d6bca48658c4318c144909544545c3d.zip |
treat "" the same as NULL (don't add it to the list).
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).
svn path=/trunk/; revision=25424
Diffstat (limited to 'addressbook')
-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); |