diff options
author | Not Zed <NotZed@Ximian.com> | 2003-05-07 08:53:40 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-05-07 08:53:40 +0800 |
commit | ba201c0f99ccf86e6caada4ba43a050e42e63bed (patch) | |
tree | 3715d7e3c80598238fe9acf72795d4add442b901 /mail | |
parent | f9991e3982ffa17f3f6a2a559bf0e5769bb3a429 (diff) | |
download | gsoc2013-evolution-ba201c0f99ccf86e6caada4ba43a050e42e63bed.tar gsoc2013-evolution-ba201c0f99ccf86e6caada4ba43a050e42e63bed.tar.gz gsoc2013-evolution-ba201c0f99ccf86e6caada4ba43a050e42e63bed.tar.bz2 gsoc2013-evolution-ba201c0f99ccf86e6caada4ba43a050e42e63bed.tar.lz gsoc2013-evolution-ba201c0f99ccf86e6caada4ba43a050e42e63bed.tar.xz gsoc2013-evolution-ba201c0f99ccf86e6caada4ba43a050e42e63bed.tar.zst gsoc2013-evolution-ba201c0f99ccf86e6caada4ba43a050e42e63bed.zip |
** See bug #42400
2003-05-06 Not Zed <NotZed@Ximian.com>
** See bug #42400
* mail-tools.c (meta_data_key): protect against getting an
unparsable uri.
svn path=/trunk/; revision=21119
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/mail-tools.c | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 9e98b6f4ed..b8cdfdfc85 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2003-05-06 Not Zed <NotZed@Ximian.com> + + ** See bug #42400 + + * mail-tools.c (meta_data_key): protect against getting an + unparsable uri. + 2003-05-05 Not Zed <NotZed@Ximian.com> ** See bug #42294. diff --git a/mail/mail-tools.c b/mail/mail-tools.c index 565fcaed71..43c67a2fb7 100644 --- a/mail/mail-tools.c +++ b/mail/mail-tools.c @@ -508,6 +508,14 @@ static char *meta_data_key(const char *uri, char **pathp) char *p, c; url = camel_url_new(uri, NULL); + + if (url == NULL) { + g_warning("Trying to retrieve meta-data for unparsable uri: %s", uri); + *pathp = g_build_path(evolution_dir, "meta/unknown", NULL); + + return g_strdup("folder"); + } + path = g_string_new(evolution_dir); g_string_append_printf(path, "/meta/%s/", url->protocol); |