From f9c98200dd2f0fc7a12e3aaa7be78c2b56e15fe7 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Fri, 3 Oct 2025 14:22:08 +0200 Subject: [PATCH] Fix in_dpi variable checking Same as https://github.com/i3/i3/issues/6465 --- dpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpi.c b/dpi.c index 0fdf88a8..e8e78aac 100644 --- a/dpi.c +++ b/dpi.c @@ -51,7 +51,7 @@ void init_dpi(void) { char *endptr; double in_dpi = strtod(resource, &endptr); - if (in_dpi == HUGE_VAL || dpi < 0 || *endptr != '\0' || endptr == resource) { + if (in_dpi == HUGE_VAL || in_dpi < 0 || *endptr != '\0' || endptr == resource) { DEBUG("Xft.dpi = %s is an invalid number and couldn't be parsed.\n", resource); dpi = 0; goto init_dpi_end;