fix(console): Fixes Coverity false positive in va_list initialization

This commit is contained in:
Konstantin Kondrashov
2025-08-20 12:54:25 +03:00
committed by BOT
parent e6a11ba88e
commit 9b11b69a46
2 changed files with 3 additions and 3 deletions

View File

@@ -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.
*/
void arg_dstr_catf(arg_dstr_t ds, const char* fmt, ...) {
va_list arglist;
va_list arglist = {0};
char* buff;
int n, r;
size_t slen;

View File

@@ -50,14 +50,14 @@ static void panic(const char* fmt, ...);
static arg_panicfn* s_panic = panic;
void dbg_printf(const char* fmt, ...) {
va_list args;
va_list args = {0};
va_start(args, fmt);
vfprintf(stderr, fmt, args);
va_end(args);
}
static void panic(const char* fmt, ...) {
va_list args;
va_list args = {0};
char* s;
va_start(args, fmt);