summaryrefslogtreecommitdiff
path: root/progs/xdemos/yuvrect_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/xdemos/yuvrect_client.c')
-rw-r--r--progs/xdemos/yuvrect_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/xdemos/yuvrect_client.c b/progs/xdemos/yuvrect_client.c
index 48f82cb759..e2b79a7c0e 100644
--- a/progs/xdemos/yuvrect_client.c
+++ b/progs/xdemos/yuvrect_client.c
@@ -296,7 +296,7 @@ main(int argc, char *argv[])
dpy = XOpenDisplay(dpyName);
if (!dpy) {
printf("Error: couldn't open display %s\n",
- dpyName ? dpyName : getenv("DISPLAY"));
+ XDisplayName(dpyName));
return -1;
}