From 28d74c0920cc3ffa08cf64e6468b9f10a57eec8e Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 3 Oct 2001 15:50:58 +0000 Subject: Strange are the ways of alloca. Fixes 11543. * providers/local/camel-local-provider.c (local_url_equal): Strange are the ways of alloca. Fixes 11543. svn path=/trunk/; revision=13375 --- camel/ChangeLog | 5 +++++ camel/providers/local/camel-local-provider.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 + + * providers/local/camel-local-provider.c (local_url_equal): + Strange are the ways of alloca. Fixes 11543. + 2001-10-02 Jeffrey Stedfast * 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) -- cgit