mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-03 10:30:58 +02:00
fix(console): Fixes Coverity false positive in va_list initialization
This commit is contained in:
committed by
BOT
parent
e6a11ba88e
commit
9b11b69a46
@@ -221,7 +221,7 @@ void arg_dstr_catc(arg_dstr_t ds, char c) {
|
|||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
void arg_dstr_catf(arg_dstr_t ds, const char* fmt, ...) {
|
void arg_dstr_catf(arg_dstr_t ds, const char* fmt, ...) {
|
||||||
va_list arglist;
|
va_list arglist = {0};
|
||||||
char* buff;
|
char* buff;
|
||||||
int n, r;
|
int n, r;
|
||||||
size_t slen;
|
size_t slen;
|
||||||
|
@@ -50,14 +50,14 @@ static void panic(const char* fmt, ...);
|
|||||||
static arg_panicfn* s_panic = panic;
|
static arg_panicfn* s_panic = panic;
|
||||||
|
|
||||||
void dbg_printf(const char* fmt, ...) {
|
void dbg_printf(const char* fmt, ...) {
|
||||||
va_list args;
|
va_list args = {0};
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
vfprintf(stderr, fmt, args);
|
vfprintf(stderr, fmt, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void panic(const char* fmt, ...) {
|
static void panic(const char* fmt, ...) {
|
||||||
va_list args;
|
va_list args = {0};
|
||||||
char* s;
|
char* s;
|
||||||
|
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
|
Reference in New Issue
Block a user