]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Another compiler pickiness. It feels wrong to be doing this to
authorOwen Dunn <owen@greenend.org.uk>
Sat, 29 Jan 2005 22:50:18 +0000 (22:50 +0000)
committerOwen Dunn <owen@greenend.org.uk>
Sat, 29 Jan 2005 22:50:18 +0000 (22:50 +0000)
perfectly idiomatic code, somehow, and I half wonder whether the
Mac compilers are too stupid to be allowed to treat warnings as
errors.

[originally from svn r5228]

x11fwd.c

index c912e448b23617bc2714878246fd69d4961509ae..53cec5f93044265f95bd617b6bab65f6d8da0153 100644 (file)
--- a/x11fwd.c
+++ b/x11fwd.c
@@ -491,7 +491,7 @@ int x11_send(Socket s, char *data, int len)
                 memcpy(realauthdata, pr->auth->realdata, realauthlen);
             } else if (pr->auth->realproto == X11_XDM &&
                       pr->auth->reallen == 16 &&
-                      (buf = sk_getxdmdata(s, &buflen))) {
+                      ((buf = sk_getxdmdata(s, &buflen))!=0)) {
                time_t t;
                 realauthlen = (buflen+12+7) & ~7;
                assert(realauthlen <= lenof(realauthdata));