We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66210ec commit ea4ee81Copy full SHA for ea4ee81
dpi.c
@@ -51,7 +51,7 @@ void init_dpi(void) {
51
52
char *endptr;
53
double in_dpi = strtod(resource, &endptr);
54
- if (in_dpi == HUGE_VAL || dpi < 0 || *endptr != '\0' || endptr == resource) {
+ if (in_dpi == HUGE_VAL || in_dpi < 0 || *endptr != '\0' || endptr == resource) {
55
DEBUG("Xft.dpi = %s is an invalid number and couldn't be parsed.\n", resource);
56
dpi = 0;
57
goto init_dpi_end;
0 commit comments