Skip to content

Commit

Permalink
Revert "Fixes va_list in strbuf being left uninitialized (causes MSVC…
Browse files Browse the repository at this point in the history
… to crash)"

This reverts commit d26ddde.
  • Loading branch information
SanderMertens committed Sep 18, 2023
1 parent 1c3a6a4 commit 74f84ca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions util/src/strbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#include <bake_util.h>

#define UT_VA_INIT (va_list){0}

/* Add an extra element to the buffer */
static
void ut_strbuf_grow(
Expand Down Expand Up @@ -279,7 +277,7 @@ bool ut_strbuf_appendstrn(
const char* str,
int64_t len)
{
va_list args = UT_VA_INIT;
va_list args;
return ut_strbuf_append_intern(
b, str, len, false, args
);
Expand Down Expand Up @@ -309,7 +307,7 @@ bool ut_strbuf_appendstr(
ut_strbuf *b,
const char* str)
{
va_list args = UT_VA_INIT;
va_list args;
return ut_strbuf_append_intern(
b, str, -1, false, args
);
Expand Down

0 comments on commit 74f84ca

Please sign in to comment.