Skip to content

Commit

Permalink
net/nanocoap: initialize offset attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kb2ma committed Feb 24, 2019
1 parent 0ff2856 commit 789646e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/net/application_layer/nanocoap/nanocoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ void coap_block_object_init(coap_block1_t *block, size_t blknum, size_t blksize,
block->szx = _size2szx(blksize);
block->blknum = blknum;
block->more = more;
block->offset = block->blknum << (block->szx + 4);
}

void coap_block_slicer_init(coap_block_slicer_t *slicer, size_t blknum,
Expand Down

0 comments on commit 789646e

Please sign in to comment.