Another compiler pickiness. It feels wrong to be doing this to
authorowen <owen@cda61777-01e9-0310-a592-d414129be87e>
Sat, 29 Jan 2005 22:50:18 +0000 (22:50 +0000)
committerowen <owen@cda61777-01e9-0310-a592-d414129be87e>
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.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5228 cda61777-01e9-0310-a592-d414129be87e

x11fwd.c

index c912e44..53cec5f 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));