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 <frantisek.hrbata@espressif.com>
This commit is contained in:
Frantisek Hrbata
2026-01-20 12:31:10 +01:00
parent 50876225a3
commit f83ec13a2f
+1
View File
@@ -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)