From ee7b049d1999afa5a66d072eb55e423f049a28d0 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Mon, 25 Sep 2017 10:49:33 -0700 Subject: Initialize tag to make compiler happy. --- upb/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upb/decode.c b/upb/decode.c index 3c76e0f..3e782d7 100644 --- a/upb/decode.c +++ b/upb/decode.c @@ -97,7 +97,7 @@ static bool upb_decode_32bit(const char **ptr, const char *limit, static bool upb_decode_tag(const char **ptr, const char *limit, int *field_number, int *wire_type) { - uint32_t tag; + uint32_t tag = 0; CHK(upb_decode_varint32(ptr, limit, &tag)); *field_number = tag >> 3; *wire_type = tag & 7; -- cgit v1.2.3