aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/local/camel-local-provider.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index eb71bd7d32..05f21a5b7d 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-03 Dan Winship <danw@ximian.com>
+
+ * providers/local/camel-local-provider.c (local_url_equal):
+ Strange are the ways of alloca. Fixes 11543.
+
2001-10-02 Jeffrey Stedfast <fejj@ximian.com>
* camel-tcp-stream-ssl.c (ssl_bad_cert): Import the certificate if
diff --git a/camel/providers/local/camel-local-provider.c b/camel/providers/local/camel-local-provider.c
index d4e638b9bf..ef17726988 100644
--- a/camel/providers/local/camel-local-provider.c
+++ b/camel/providers/local/camel-local-provider.c
@@ -156,8 +156,11 @@ static int
local_url_equal(const void *v, const void *v2)
{
const CamelURL *u1 = v, *u2 = v2;
+ char *p1, *p2;
- return check_equal(get_can_path(u1->path), get_can_path(u2->path))
+ p1 = get_can_path(u1->path);
+ p2 = get_can_path(u2->path);
+ return check_equal(p1, p2)
&& check_equal(u1->protocol, u2->protocol)
&& check_equal(u1->user, u2->user)
&& check_equal(u1->authmech, u2->authmech)