fix libi3: in dpi retrieval function wrong variable used (#6466)

this is proposed fix for #6465

---------

Co-authored-by: Dmitry K <dmitry.k@siklu.com>
This commit is contained in:
Dmitry 2025-10-03 15:12:50 +03:00 committed by GitHub
parent d1daf169bb
commit ab6a75a693
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,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) {
ELOG("Xft.dpi = %s is an invalid number and couldn't be parsed.\n", resource);
dpi = 0;
goto init_dpi_end;