Skip to content

Commit

Permalink
fixed error output conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Jul 28, 2014
1 parent 839b885 commit 63ded80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/screenfetch-c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,9 @@ void detect_res(char* str)
else
{
safe_strncpy(str, "No X Server", MAX_STRLEN);
ERROR_OUT("Error:", "Problem detecting X display resolution.");

if (error)
ERROR_OUT("Error: ", "Problem detecting X display resolution.");
}
#endif
}
Expand Down

0 comments on commit 63ded80

Please sign in to comment.