From 15e8b4e4779bc512a6949927be1c9d4765a1e302 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 19 May 2003 18:49:07 +0000 Subject: fix the initial run case. the config upgrade code creates all elements so 2003-05-19 Chris Toshok * gui/component/addressbook-component.c (ensure_completion_uris_exist): fix the initial run case. the config upgrade code creates all elements so we can't just check for NULL - we have to check if the string is empty. Fixes #43213. svn path=/trunk/; revision=21263 --- addressbook/ChangeLog | 7 +++++++ addressbook/gui/component/addressbook-component.c | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 3e300ed0ef..e7589fad72 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2003-05-19 Chris Toshok + + * gui/component/addressbook-component.c + (ensure_completion_uris_exist): fix the initial run case. the + config upgrade code creates all elements so we can't just check + for NULL - we have to check if the string is empty. Fixes #43213. + 2003-05-19 Chris Toshok * gui/widgets/e-minicard-label.c (set_colors): if we've got focus, diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c index ba18f65e63..f90df5f65a 100644 --- a/addressbook/gui/component/addressbook-component.c +++ b/addressbook/gui/component/addressbook-component.c @@ -601,6 +601,11 @@ ensure_completion_uris_exist() val = e_config_listener_get_string (db, "/apps/evolution/addressbook/completion/uris"); + if (val && !*val) { + g_free (val); + val = NULL; + } + if (!val) { EFolderListItem f[2]; char *dirname, *uri; -- cgit