diff options
author | Bo Yang <teboring@google.com> | 2018-06-14 20:03:20 +0000 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2018-06-14 20:03:20 +0000 |
commit | 1080117f2b64a7a9f00fca65365c04762c2e915b (patch) | |
tree | a7a59c1c0831c0a76a35762f1aedfc646fb58732 /upb/msg.c | |
parent | d73b12ed3c475aca7fa306d739df5ff4c6728a32 (diff) |
Revert "Prepare upb_value for encoding/decoding map."
This reverts commit f30dd0ff0cead9bb1f8f3b1b295392d75705486b.
Diffstat (limited to 'upb/msg.c')
-rw-r--r-- | upb/msg.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -95,12 +95,16 @@ static uint8_t upb_msg_fielddefsize(const upb_fielddef *f) { * pointer to that in the tables for extensions/maps. */ static upb_value upb_toval(upb_msgval val) { upb_value ret; - ret.val = val; + UPB_UNUSED(val); + memset(&ret, 0, sizeof(upb_value)); /* XXX */ return ret; } static upb_msgval upb_msgval_fromval(upb_value val) { - return val.val; + upb_msgval ret; + UPB_UNUSED(val); + memset(&ret, 0, sizeof(upb_msgval)); /* XXX */ + return ret; } static upb_ctype_t upb_fieldtotabtype(upb_fieldtype_t type) { |