diff options
author | Bo Yang <teboring@google.com> | 2017-09-25 10:49:33 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2017-09-25 10:49:33 -0700 |
commit | ee7b049d1999afa5a66d072eb55e423f049a28d0 (patch) | |
tree | 767a5dfd97e225e0a468aaec84b0fe94b24d51bc | |
parent | 0776f64830e8654193b5784e9e124424af8de680 (diff) |
Initialize tag to make compiler happy.
-rw-r--r-- | upb/decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |