From 81fbb4ffa72e7e86e500cf4f7bd0c73910263fbf Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Thu, 6 Sep 2018 05:09:28 +0000 Subject: Initialize value --- upb/json/parser.c | 2 +- upb/json/parser.rl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'upb') diff --git a/upb/json/parser.c b/upb/json/parser.c index 85c9476..53e31a1 100644 --- a/upb/json/parser.c +++ b/upb/json/parser.c @@ -1904,7 +1904,7 @@ static void start_value_object(upb_json_parser *p, int value_type) { const char *boolmember = "bool_value"; const char *structmember = "struct_value"; const char *listmember = "list_value"; - const char *membername; + const char *membername = ""; switch (value_type) { case VALUE_NULLVALUE: diff --git a/upb/json/parser.rl b/upb/json/parser.rl index fc87ddb..0ac49a5 100644 --- a/upb/json/parser.rl +++ b/upb/json/parser.rl @@ -1902,7 +1902,7 @@ static void start_value_object(upb_json_parser *p, int value_type) { const char *boolmember = "bool_value"; const char *structmember = "struct_value"; const char *listmember = "list_value"; - const char *membername; + const char *membername = ""; switch (value_type) { case VALUE_NULLVALUE: -- cgit v1.2.3