summaryrefslogtreecommitdiff
path: root/upb/decode.c
diff options
context:
space:
mode:
authorBo Yang <teboring@google.com>2017-09-25 10:49:33 -0700
committerBo Yang <teboring@google.com>2017-09-25 10:49:33 -0700
commitee7b049d1999afa5a66d072eb55e423f049a28d0 (patch)
tree767a5dfd97e225e0a468aaec84b0fe94b24d51bc /upb/decode.c
parent0776f64830e8654193b5784e9e124424af8de680 (diff)
Initialize tag to make compiler happy.
Diffstat (limited to 'upb/decode.c')
-rw-r--r--upb/decode.c2
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback