Skip to content

Commit

Permalink
Fix a compile issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Nov 22, 2017
1 parent 1ee746b commit d94de24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wrp-c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit d94de24

Please sign in to comment.