mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-22 07:15:14 +03:00
block.c: Correctly preset updated_block variable
This commit is contained in:
1 parent
df99212fac
commit
346a831cd6
1 file changed
+1
-1
+1
-1
@@ -1977,7 +1977,7 @@ coap_handle_response_get_block(coap_context_t *context,
|
||||
p->observe_set = 0;
|
||||
}
|
||||
}
|
||||
updated_block = 1;
|
||||
updated_block = 0;
|
||||
while (offset < saved_offset + length) {
|
||||
if (!check_if_received_block(&p->rec_blocks, block.num)) {
|
||||
/* Update list of blocks received */
|
||||
|
||||
Reference in new issue
Block a user