Fix build with GCC 14 (#17282)

This commit is contained in:
Viačasłaŭ 2024-12-25 10:51:48 +03:00 committed by GitHub
parent 9a5b2063b7
commit b124fe6e65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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__)