Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't print null display name #11

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@maramon
Copy link

commented Jun 3, 2019

Variable 'display_name' is always null here.

Don't print null display name
Variable 'display_name' is always null here.
@@ -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: cannot connect to X server\n", name);

This comment has been minimized.

Copy link
@arp242

arp242 Jun 3, 2019

Owner

Yeah, this made no sense 🤦‍♂ Would be better to mention a more specific error, such as %s: DISPLAY not set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.