| 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) |
| 401 | return NULL; |
| 402 | return bencode_dictionary_add(dict, key, bencode_string_dup(bencode_item_buffer(dict), val)); |
| 403 | } |
| 404 | |
| 405 | static inline bencode_item_t *bencode_dictionary_add_str(bencode_item_t *dict, const char *key, const str *val) { |
| 406 | if (!val) |
nothing calls this directly
no test coverage detected