aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-11-02 08:45:29 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-11-02 08:45:29 +0800
commit4eaf9e569967246e4e3628d0e7ec41bb12368434 (patch)
tree55c6abd3a7c22b03b8f828d835971ca3f53dba02 /camel
parent60c8e14af488ebee0742f62eb0a09651ab6795ea (diff)
downloadgsoc2013-evolution-4eaf9e569967246e4e3628d0e7ec41bb12368434.tar
gsoc2013-evolution-4eaf9e569967246e4e3628d0e7ec41bb12368434.tar.gz
gsoc2013-evolution-4eaf9e569967246e4e3628d0e7ec41bb12368434.tar.bz2
gsoc2013-evolution-4eaf9e569967246e4e3628d0e7ec41bb12368434.tar.lz
gsoc2013-evolution-4eaf9e569967246e4e3628d0e7ec41bb12368434.tar.xz
gsoc2013-evolution-4eaf9e569967246e4e3628d0e7ec41bb12368434.tar.zst
gsoc2013-evolution-4eaf9e569967246e4e3628d0e7ec41bb12368434.zip
Use g_path_get_basename instead of g_strdup (g_basename (filename)).
2002-11-01 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-local-store.c (delete_folder): Use g_path_get_basename instead of g_strdup (g_basename (filename)). svn path=/trunk/; revision=18498
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/providers/local/camel-local-store.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index ef44bf7f41..cd7b446ac8 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,8 @@
2002-11-01 Jeffrey Stedfast <fejj@ximian.com>
+ * providers/local/camel-local-store.c (delete_folder): Use
+ g_path_get_basename instead of g_strdup (g_basename (filename)).
+
* camel-uid-cache.c (camel_uid_cache_new): Use g_path_get_dirname
since g_dirname has been deprecated.
diff --git a/camel/providers/local/camel-local-store.c b/camel/providers/local/camel-local-store.c
index 567b2b316a..7a9cd86de1 100644
--- a/camel/providers/local/camel-local-store.c
+++ b/camel/providers/local/camel-local-store.c
@@ -402,7 +402,7 @@ delete_folder(CamelStore *store, const char *folder_name, CamelException *ex)
fi = g_new0 (CamelFolderInfo, 1);
fi->full_name = g_strdup (folder_name);
- fi->name = g_strdup (g_basename (folder_name));
+ fi->name = g_path_get_basename (folder_name);
fi->url = g_strdup_printf ("%s%s", CAMEL_LOCAL_STORE(store)->toplevel_dir, folder_name);
fi->unread_message_count = -1;
camel_folder_info_build_path(fi, '/');