From f83ec13a2fe7f4eb21601da921228ea56a7824ff Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Tue, 20 Jan 2026 12:31:10 +0100 Subject: [PATCH] fix(linux/cmake): fix the usage of the uninitialized variable The `srcs` list variable is used without initialization when building for linux target. Initialize it explicitly. Signed-off-by: Frantisek Hrbata --- components/linux/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/components/linux/CMakeLists.txt b/components/linux/CMakeLists.txt index e446de0e9d..d271649431 100644 --- a/components/linux/CMakeLists.txt +++ b/components/linux/CMakeLists.txt @@ -3,6 +3,7 @@ if(NOT "${target}" STREQUAL "linux") return() endif() +set(srcs) set(includes "include") if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin") list(APPEND srcs getrandom.c assert_func.c)