X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/e99cd73fed21152a2cea8d43cd76d33eda408b08..11a60120eed82422fee571d92bb31b9d2746498c:/x11fwd.c diff --git a/x11fwd.c b/x11fwd.c index 0eec1211..17ab3a25 100644 --- 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