evolution r36821 - trunk/plugins/caldav
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36821 - trunk/plugins/caldav
- Date: Fri, 28 Nov 2008 12:20:23 +0000 (UTC)
Author: mcrha
Date: Fri Nov 28 12:20:23 2008
New Revision: 36821
URL: http://svn.gnome.org/viewvc/evolution?rev=36821&view=rev
Log:
2008-11-28 Milan Crha <mcrha redhat com>
** Part of fix for bug #503662
* caldav-source.c: (user_changed):
Set NULL properly to protect against using already freed memory.
Modified:
trunk/plugins/caldav/ChangeLog
trunk/plugins/caldav/caldav-source.c
Modified: trunk/plugins/caldav/caldav-source.c
==============================================================================
--- trunk/plugins/caldav/caldav-source.c (original)
+++ trunk/plugins/caldav/caldav-source.c Fri Nov 28 12:20:23 2008
@@ -191,11 +191,12 @@
euri = e_uri_new (uri);
g_free (euri->user);
- if (user != NULL) {
+ if (user != NULL && *user) {
euri->user = g_strdup (user);
e_source_set_property (source, "auth", "1");
} else {
e_source_set_property (source, "auth", NULL);
+ euri->user = NULL;
}
e_source_set_property (source, "username", euri->user);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]