Skip to content

Commit 01be2a1

Browse files
committed
Fix warning SB struct may be used uninitialized
1 parent 0dbf15e commit 01be2a1

File tree

1 file changed

+1
-1
lines changed
  • libs/pilight/libs/pilight/core

1 file changed

+1
-1
lines changed

libs/pilight/libs/pilight/core/json.c

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

0 commit comments

Comments
 (0)