diff options
author | Nikias Bassen | 2010-03-25 23:16:03 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-03-25 23:53:02 +0100 |
commit | ecd90b60ef62ac80db1a131dd0cf32e28e223b95 (patch) | |
tree | a2362b63b3f6886d6fcc75540bc5cff1d1e9ce01 | |
parent | 6f07a0bb701d6236dda7b19bd04df6414708dc78 (diff) | |
download | libimobiledevice-ecd90b60ef62ac80db1a131dd0cf32e28e223b95.tar.gz libimobiledevice-ecd90b60ef62ac80db1a131dd0cf32e28e223b95.tar.bz2 |
Use insert_item instead of set_item to make adding client options work
-rw-r--r-- | src/installation_proxy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/installation_proxy.c b/src/installation_proxy.c index c26318a..3ffbb6a 100644 --- a/src/installation_proxy.c +++ b/src/installation_proxy.c @@ -739,21 +739,21 @@ void instproxy_client_options_add(plist_t client_options, ...) char *key = strdup(arg); if (!strcmp(key, "SkipUninstall")) { int intval = va_arg(args, int); - plist_dict_set_item(client_options, key, plist_new_bool(intval)); + plist_dict_insert_item(client_options, key, plist_new_bool(intval)); } else if (!strcmp(key, "ApplicationSINF") || !strcmp(key, "iTunesMetadata")) { plist_t plistval = va_arg(args, plist_t); if (!plistval) { free(key); break; } - plist_dict_set_item(client_options, key, plist_copy(plistval)); + plist_dict_insert_item(client_options, key, plist_copy(plistval)); } else { char *strval = va_arg(args, char*); if (!strval) { free(key); break; } - plist_dict_set_item(client_options, key, plist_new_string(strval)); + plist_dict_insert_item(client_options, key, plist_new_string(strval)); } free(key); arg = va_arg(args, char*); |