| 391 | } |
| 392 | |
| 393 | static inline bencode_item_t *bencode_dictionary_add_string(bencode_item_t *dict, const char *key, const char *val) { |
| 394 | if (!val) |
| 395 | return NULL; |
| 396 | return bencode_dictionary_add(dict, key, bencode_string(bencode_item_buffer(dict), val)); |
| 397 | } |
| 398 | |
| 399 | static inline bencode_item_t *bencode_dictionary_add_string_dup(bencode_item_t *dict, const char *key, const char *val) { |
| 400 | if (!val) |
no test coverage detected