Fix/bludgeon Mac compile wrinkles.
[u/mdw/putty] / x11fwd.c
index 0eec121..17ab3a2 100644 (file)
--- a/x11fwd.c
+++ b/x11fwd.c
@@ -241,7 +241,7 @@ char *x11_display(const char *display) {
     char *ret;
     if(!display || !*display) {
        /* try to find platform-specific local display */
-       if(!(ret = platform_get_x_display()))
+       if((ret = platform_get_x_display())==0)
            /* plausible default for all platforms */
            ret = dupstr(":0");
     } else