fix(esp_coex): Fix the issue of uninitialized pointer reading in coexist_printf

This commit is contained in:
yangfeng
2025-08-22 12:08:48 +08:00
parent 56bef4d352
commit f37f57bbe1

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2016-2024 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2016-2025 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
@@ -44,7 +44,7 @@ static int lib_printf(const char* tag, const char* format, va_list arg)
int coexist_printf(const char* format, ...) int coexist_printf(const char* format, ...)
{ {
va_list arg; va_list arg = {};
va_start(arg, format); va_start(arg, format);
int res = lib_printf("coexist", format, arg); int res = lib_printf("coexist", format, arg);
va_end(arg); va_end(arg);