From 22cf5a61ef602bb9c94b1eec32c4923692e880bd Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Tue, 26 Aug 2025 19:38:15 +0200 Subject: [PATCH] fix(esp_usb_cdc_rom_console/cmake): avoid using uninitialized srcs variable In cmakev2, the component CMakeLists.txt files are evaluated recursively based on the component dependencies. This means that variables from previously evaluated components are set and available in the scope of the currently evaluated component. It is necessary to initialize every variable that is used. Fixes: 56e0c11bb67f ("feat(usb_cdc_console): moved usb-cdc ROM console to n..") Signed-off-by: Frantisek Hrbata --- components/esp_usb_cdc_rom_console/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_usb_cdc_rom_console/CMakeLists.txt b/components/esp_usb_cdc_rom_console/CMakeLists.txt index 01f3551f44..40dfb942c8 100644 --- a/components/esp_usb_cdc_rom_console/CMakeLists.txt +++ b/components/esp_usb_cdc_rom_console/CMakeLists.txt @@ -1,5 +1,6 @@ idf_build_get_property(target IDF_TARGET) +set(srcs) if(CONFIG_ESP_CONSOLE_USB_CDC) list(APPEND srcs "usb_console.c")