From d94de248b825a4775a4d116455147d76fbd57015 Mon Sep 17 00:00:00 2001 From: Weston Schmidt Date: Wed, 22 Nov 2017 14:11:56 -0800 Subject: [PATCH] Fix a compile issue. --- src/wrp-c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wrp-c.c b/src/wrp-c.c index a63ea4b..cb743dc 100644 --- a/src/wrp-c.c +++ b/src/wrp-c.c @@ -932,12 +932,13 @@ static void __msgpack_maps( msgpack_packer *pk, const data_t *dataMap ) if( dataMap != NULL ) { struct data *tmpdata; - struct wrp_token WRP_MAP_NAME = {'\0'}; msgpack_pack_map( pk, dataMap->count ); tmpdata = dataMap->data_items; WRP_DEBUG("dataMap->count is %zu\n", dataMap->count ); for( i = 0; i < dataMap->count; i++ ) { + struct wrp_token WRP_MAP_NAME; + WRP_MAP_NAME.name = tmpdata[i].name; WRP_MAP_NAME.length = strlen( tmpdata[i].name ); __msgpack_pack_string_nvp( pk, &WRP_MAP_NAME, tmpdata[i].value );