summaryrefslogtreecommitdiff
path: root/upb
diff options
context:
space:
mode:
Diffstat (limited to 'upb')
-rw-r--r--upb/msg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/upb/msg.c b/upb/msg.c
index 3440b81..ae63792 100644
--- a/upb/msg.c
+++ b/upb/msg.c
@@ -82,13 +82,15 @@ static uint8_t upb_msg_fieldsize(const upb_fielddef *f) {
* pointer to that in the tables for extensions/maps. */
static upb_value upb_toval(upb_msgval val) {
upb_value ret;
- memcpy(&ret, &val, sizeof(upb_value));
+ UPB_UNUSED(val);
+ memset(&ret, 0, sizeof(upb_value)); /* XXX */
return ret;
}
static upb_msgval upb_msgval_fromval(upb_value val) {
upb_msgval ret;
- memcpy(&ret, &val, sizeof(upb_value));
+ UPB_UNUSED(val);
+ memset(&ret, 0, sizeof(upb_msgval)); /* XXX */
return ret;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback