summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Aaron Burghardt2013-09-25 21:23:32 -0400
committerGravatar Martin Szulecki2013-10-24 14:36:36 +0200
commit27d18c86865601673375d08573a0c512c401b280 (patch)
treeb6c33aba14fd96c6176d916c8cb27eb29777468e
parente1c4c756df5f5015979b292969e4fd6415a157bb (diff)
downloadidevicerestore-27d18c86865601673375d08573a0c512c401b280.tar.gz
idevicerestore-27d18c86865601673375d08573a0c512c401b280.tar.bz2
Return ‘DeviceTree’ instead of ‘RestoreDeviceTree’ from get_component_name().
Returning ‘RestoreDeviceTree’ is inconsistent with other component names, and the caller apparently handles the need for it. Also, the API doc for plist_dictionary_insert_item states that it asserts if the key to be inserted already exists. if plist_dictionary_insert_item actually does assert as described, the caller of get_component_name triggers that assertion if ‘RestoreDeviceTree’ is returned. Signed-off-by: Martin Szulecki <m.szulecki@libimobiledevice.org>
-rw-r--r--src/idevicerestore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 224dc10..5e9b700 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1657,7 +1657,7 @@ const char* get_component_name(const char* filename)
} else if (!strncmp(filename, "iBoot", 5)) {
return "iBoot";
} else if (!strncmp(filename, "DeviceTree", 10)) {
- return "RestoreDeviceTree";
+ return "DeviceTree";
} else if (!strncmp(filename, "applelogo", 9)) {
return "AppleLogo";
} else if (!strncmp(filename, "recoverymode", 12)) {