aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-03-15 22:37:47 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-15 22:37:47 +0800
commitd749d27d5725987dc95ae3ec9b176e13eaac3c43 (patch)
tree4c5a89d81c08e2532c4cac42d1959267d0926658 /camel/providers
parent600eb6308ae2ce5f7aeb40432f0aa7e8c8951611 (diff)
downloadgsoc2013-evolution-d749d27d5725987dc95ae3ec9b176e13eaac3c43.tar
gsoc2013-evolution-d749d27d5725987dc95ae3ec9b176e13eaac3c43.tar.gz
gsoc2013-evolution-d749d27d5725987dc95ae3ec9b176e13eaac3c43.tar.bz2
gsoc2013-evolution-d749d27d5725987dc95ae3ec9b176e13eaac3c43.tar.lz
gsoc2013-evolution-d749d27d5725987dc95ae3ec9b176e13eaac3c43.tar.xz
gsoc2013-evolution-d749d27d5725987dc95ae3ec9b176e13eaac3c43.tar.zst
gsoc2013-evolution-d749d27d5725987dc95ae3ec9b176e13eaac3c43.zip
same as below for path.
2004-03-15 Not Zed <NotZed@Ximian.com> * providers/local/camel-mbox-store.c (delete_folder): same as below for path. * providers/local/camel-local-store.c (delete_folder): NULL out str before looking up the state file using it. Otherwise we double-free str. * camel-mime-parser.c (folder_scan_skip_line): we want to scan till in-end-1. If we've been called we're either at the end of data, or we know we have an end of line character within memory. Another case in Bug #53355. svn path=/trunk/; revision=25068
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/local/camel-local-store.c3
-rw-r--r--camel/providers/local/camel-mbox-store.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/camel/providers/local/camel-local-store.c b/camel/providers/local/camel-local-store.c
index a883f4a4dd..a009000f78 100644
--- a/camel/providers/local/camel-local-store.c
+++ b/camel/providers/local/camel-local-store.c
@@ -399,7 +399,8 @@ delete_folder(CamelStore *store, const char *folder_name, CamelException *ex)
return;
}
g_free(str);
-
+
+ str = NULL;
camel_exception_init (&lex);
if ((lf = camel_store_get_folder (store, folder_name, 0, &lex))) {
camel_object_get (lf, NULL, CAMEL_OBJECT_STATE_FILE, &str, NULL);
diff --git a/camel/providers/local/camel-mbox-store.c b/camel/providers/local/camel-mbox-store.c
index 45d91b1fa6..e8c47c5672 100644
--- a/camel/providers/local/camel-mbox-store.c
+++ b/camel/providers/local/camel-mbox-store.c
@@ -301,7 +301,8 @@ delete_folder(CamelStore *store, const char *folder_name, CamelException *ex)
}
g_free(path);
-
+
+ path = NULL;
camel_exception_init(&lex);
if ((lf = camel_store_get_folder(store, folder_name, 0, &lex))) {
camel_object_get(lf, NULL, CAMEL_OBJECT_STATE_FILE, &path, NULL);