Skip to content

Commit b10eea1

Browse files
committed
Fix minor gcc warning when -O3 is enabled
1 parent b31f156 commit b10eea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/json.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ static bool parse_object(const char **sp, JsonNode **out)
802802
bool parse_string(const char **sp, char **out)
803803
{
804804
const char *s = *sp;
805-
SB sb;
805+
SB sb = { 0, 0, 0};
806806
char throwaway_buffer[4];
807807
/* enough space for a UTF-8 character */
808808
char *b;

0 commit comments

Comments
 (0)