aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-08-13 11:25:47 +0800
committerDan Winship <danw@src.gnome.org>2000-08-13 11:25:47 +0800
commit3655f5d2480dfbbf312366732812c20f870acbd6 (patch)
tree14fe7da86c2978179ee5eafd287bd6cac094ed29
parent52d4488d7dcc477ce6fa89d5c548ee2fddcef1b3 (diff)
downloadgsoc2013-evolution-3655f5d2480dfbbf312366732812c20f870acbd6.tar.gz
gsoc2013-evolution-3655f5d2480dfbbf312366732812c20f870acbd6.tar.zst
gsoc2013-evolution-3655f5d2480dfbbf312366732812c20f870acbd6.zip
(imap_get_subfolder_names_internal): Add "INBOX" to the list as
g_malloc'ed memory, not a static string. svn path=/trunk/; revision=4792
-rw-r--r--camel/ChangeLog2
-rw-r--r--camel/providers/imap/camel-imap-folder.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 1c22cffd82..b0d76ac490 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -3,6 +3,8 @@
* providers/imap/camel-imap-folder.c (imap_get_summary_internal):
Don't assume the FETCH results will come back in the order they
were requested.
+ (imap_get_subfolder_names_internal): Add "INBOX" to the list as
+ g_malloc'ed memory, not a static string.
2000-08-12 Jeffrey Stedfast <fejj@helixcode.com>
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 94a3bd0cac..a836ecafcb 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -815,7 +815,7 @@ imap_get_subfolder_names_internal (CamelFolder *folder, CamelException *ex)
}
if (!strcmp (folder->name, namespace) && !found_inbox) {
- g_ptr_array_add (listing, "INBOX");
+ g_ptr_array_add (listing, g_strdup ("INBOX"));
}
g_free (result);