From b124fe6e65d5f64c083e0edd932a30b56573e7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Via=C4=8Das=C5=82a=C5=AD?= Date: Wed, 25 Dec 2024 10:51:48 +0300 Subject: [PATCH] Fix build with GCC 14 (#17282) --- frontend/drivers/platform_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/drivers/platform_unix.c b/frontend/drivers/platform_unix.c index 89b508082971..778f54eeda6d 100644 --- a/frontend/drivers/platform_unix.c +++ b/frontend/drivers/platform_unix.c @@ -1252,7 +1252,7 @@ static size_t frontend_unix_get_os(char *s, char *ptr; struct utsname buffer; if (uname(&buffer) != 0) - return; + return _len; *major = (int)strtol(buffer.release, &ptr, 10); *minor = (int)strtol(++ptr, NULL, 10); #if defined(__FreeBSD__)