diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-01-11 00:25:01 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-01-11 00:25:01 +0800 |
commit | b71068d4e3c600668cbb7a6e282be4b21a1d700b (patch) | |
tree | 460565c4479747de6f89d54546774694365fd1e2 /mail/mail-config.c | |
parent | 5a20da25d37a5d3ed7ef5ce453f9a7c018203a2e (diff) | |
download | gsoc2013-evolution-b71068d4e3c600668cbb7a6e282be4b21a1d700b.tar.gz gsoc2013-evolution-b71068d4e3c600668cbb7a6e282be4b21a1d700b.tar.zst gsoc2013-evolution-b71068d4e3c600668cbb7a6e282be4b21a1d700b.zip |
Fixed a situation in which we could notify the shell listener twice.
2003-01-10 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (storage_remove_folder): Fixed a situation
in which we could notify the shell listener twice.
svn path=/trunk/; revision=19401
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 2e8edde06f..8aa5f1f4f0 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -532,13 +532,13 @@ account_to_xml (MailConfigAccount *account) xmlDocDumpMemory (doc, &xmlbuf, &n); xmlFreeDoc (doc); - + /* remap to glib memory */ - tmp = g_malloc(n+1); - memcpy(tmp, xmlbuf, n); - tmp[n] = 0; - xmlFree(xmlbuf); - + tmp = g_malloc (n + 1); + memcpy (tmp, xmlbuf, n); + tmp[n] = '\0'; + xmlFree (xmlbuf); + return tmp; } |