diff options
Diffstat (limited to 'src/plist.c')
| -rw-r--r-- | src/plist.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/plist.c b/src/plist.c index f33de0a..eeb4ffd 100644 --- a/src/plist.c +++ b/src/plist.c | |||
| @@ -424,12 +424,7 @@ void plist_dict_set_item(plist_t node, const char* key, plist_t item) | |||
| 424 | 424 | ||
| 425 | void plist_dict_insert_item(plist_t node, const char* key, plist_t item) | 425 | void plist_dict_insert_item(plist_t node, const char* key, plist_t item) |
| 426 | { | 426 | { |
| 427 | if (node && PLIST_DICT == plist_get_node_type(node)) | 427 | plist_dict_set_item(node, key, item); |
| 428 | { | ||
| 429 | node_attach(node, plist_new_key(key)); | ||
| 430 | node_attach(node, item); | ||
| 431 | } | ||
| 432 | return; | ||
| 433 | } | 428 | } |
| 434 | 429 | ||
| 435 | void plist_dict_remove_item(plist_t node, const char* key) | 430 | void plist_dict_remove_item(plist_t node, const char* key) |
