guard against empty uri as well

2003-04-04  JP Rosevear  <jpr@ximian.com>

	* cal-client/cal-client.c (get_default_uri): guard against empty
	uri as well

svn path=/trunk/; revision=20669
This commit is contained in:
JP Rosevear
2003-04-04 16:31:27 +00:00
committed by JP Rosevear
parent 427a404501
commit b0c9c4b4b0
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
2003-04-04 JP Rosevear <jpr@ximian.com>
* cal-client/cal-client.c (get_default_uri): guard against empty
uri as well
2003-04-04 JP Rosevear <jpr@ximian.com>
Fixes #40722
* gui/e-meeting-time-sel.c (e_meeting_time_selector_destroy):

View File

@ -975,7 +975,7 @@ get_default_uri (gboolean tasks)
uri = e_config_listener_get_string (db, "/apps/evolution/shell/default_folders/calendar_uri");
g_object_unref (G_OBJECT (db));
if (!uri)
if (!uri || *uri == '\0')
uri = get_fall_back_uri (tasks);
else
uri = cal_util_expand_uri (uri, tasks);