X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/51e9d3c00a3471f284e89ec1f59f38ca25f10c5f..2e06dc9f00218c08f2d15bf84477b1d592f7b6e7:/x11fwd.c?ds=sidebyside diff --git a/x11fwd.c b/x11fwd.c index 13c6823e..6e04abe1 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -245,7 +245,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())==0) + if((ret = platform_get_x_display())==0 || !*ret) /* plausible default for all platforms */ ret = dupstr(":0"); } else