mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
Coverity: Fix reported errors
CID 1667634 CID 1667636 CID 1667638 CID 1667639 CID 1667641 CID 1667642 CID 1667644 CID 1667646 CID 1667647 CID 1667649 CID 1667650 CID 1667651
This commit is contained in:
1 parent
43bb86df92
commit
bcee6f7149
7 files changed
+37
-15
No files matched your search
@@ -799,7 +799,7 @@ hnd_put_post(coap_resource_t *resource,
|
||||
dynamic_resource_t *resource_entry = NULL;
|
||||
coap_opt_iterator_t opt_iter;
|
||||
coap_opt_t *option;
|
||||
coap_binary_t *data_so_far;
|
||||
coap_binary_t *data_so_far = NULL;
|
||||
transient_value_t *transient_value;
|
||||
|
||||
resource_entry = coap_resource_get_userdata(resource);
|
||||
@@ -967,8 +967,8 @@ individual_blocks(coap_session_t *session COAP_UNUSED,
|
||||
size_t offset,
|
||||
size_t total) {
|
||||
|
||||
fwrite(data, length, 1, stderr);
|
||||
/* Keep all hte data, so that hnd_put_example_data() can also update things */
|
||||
(void)fwrite(data, length, 1, stderr);
|
||||
/* Keep all the data, so that hnd_put_example_data() can also update things */
|
||||
*body_data = coap_block_build_body(*body_data, length, data,
|
||||
offset, total);
|
||||
if (!(*body_data)) {
|
||||
|
||||
Reference in new issue
Block a user