[Mimedefang] MIMEDefang 2.70 is Released GCC issue?

David F. Skoll dfs at roaringpenguin.com
Tue Jun 29 11:32:24 EDT 2010


J.P van Oijen wrote:

> I can not seem to compile this new version but this might be an CGG version
> issue as on gcc version 3.3.4 it runs fine. But still maybe someone can help
> me out.

*sigh* I really need to figure out how to make modern gcc's reject constructs
like that.

Anyway... this simple patch should fix it.

Regards,

David.


diff --git a/mimedefang-multiplexor.c b/mimedefang-multiplexor.c
index da4eb80..c62b410 100644
--- a/mimedefang-multiplexor.c
+++ b/mimedefang-multiplexor.c
@@ -1441,9 +1441,9 @@ set_slave_status_from_command(Slave *s, char const *buf)
        if we have specified a limit on concurrent recipoks
        per domain */
     if ((s->cmd == RECIPOK_CMD) && (Settings.maxRecipokPerDomain > 0)) {
+       int len = 0;
        s->domain[0] = 0;
        out = s->domain;
-       int len = 0;
        ptr = buf;
        while(*ptr && (*ptr != '@')) ptr++;
        if (*ptr == '@') {



More information about the MIMEDefang mailing list