Skip to content

Commit ea4ee81

Browse files
authored
Fix in_dpi variable checking (#373)
Same as i3/i3#6465
1 parent 66210ec commit ea4ee81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void init_dpi(void) {
5151

5252
char *endptr;
5353
double in_dpi = strtod(resource, &endptr);
54-
if (in_dpi == HUGE_VAL || dpi < 0 || *endptr != '\0' || endptr == resource) {
54+
if (in_dpi == HUGE_VAL || in_dpi < 0 || *endptr != '\0' || endptr == resource) {
5555
DEBUG("Xft.dpi = %s is an invalid number and couldn't be parsed.\n", resource);
5656
dpi = 0;
5757
goto init_dpi_end;

0 commit comments

Comments
 (0)