summaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index 12194bc..2a90922 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -234,13 +234,13 @@ static int internal_set_value(const char *config_file, const char *key, plist_t
plist_read_from_filename(&config, config_file);
if (!config) {
config = plist_new_dict();
- plist_dict_insert_item(config, key, value);
+ plist_dict_set_item(config, key, value);
} else {
plist_t n = plist_dict_get_item(config, key);
if (n) {
plist_dict_remove_item(config, key);
}
- plist_dict_insert_item(config, key, value);
+ plist_dict_set_item(config, key, value);
remove(config_file);
}