mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
Coverity: Fix scan issues
Fixes CID 1502435: CID 1502432: CID 1502423: False Positives CID 1502434: Cant see why code is not reached CID 1502433: Could make blk_size uint8_t:3 I guess. CID 1502430: Dont know why it is complaining CID 1502427: CID 1502426: Code looks fine to me - context->session could be set. CID 1502424: Fixed by other PRs CID 1502422: #610 CID 1502431: #610 CID 1502428: #610 CID 1502429: #587 with my additional fixes
This commit is contained in:
1 parent
ae752e9e7a
commit
74342abe4d
4 files changed
+9
-3
No files matched your search
@@ -526,6 +526,7 @@ coap_show_pdu(coap_log_t level, const coap_pdu_t *pdu) {
|
||||
outbuflen = strlen(outbuf);
|
||||
snprintf(&outbuf[outbuflen], sizeof(outbuf)-outbuflen, " [");
|
||||
while ((option = coap_option_next(&opt_iter))) {
|
||||
buf[0] = '\000';
|
||||
if (!have_options) {
|
||||
have_options = 1;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user