Don't print null display name (#11)

Variable 'display_name' is always null here.
pull/14/head v1.3
Markus Rinne 5 years ago committed by Martin Tournoij
parent fcc5cb2534
commit db50bc256d
No known key found for this signature in database
GPG Key ID: A6258419189EE585

@ -149,7 +149,7 @@ void draw(
// Setup display and such
char *display_name = getenv("DISPLAY");
if (!display_name) {
fprintf(stderr, "%s: cannot connect to X server '%s'\n", name, display_name);
fprintf(stderr, "%s: DISPLAY not set\n", name);
exit(1);
}

Loading…
Cancel
Save