diff options
author | Aaron Burghardt | 2013-09-25 21:23:32 -0400 |
---|---|---|
committer | Martin Szulecki | 2013-10-24 14:36:36 +0200 |
commit | 27d18c86865601673375d08573a0c512c401b280 (patch) | |
tree | b6c33aba14fd96c6176d916c8cb27eb29777468e | |
parent | e1c4c756df5f5015979b292969e4fd6415a157bb (diff) | |
download | idevicerestore-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.c | 2 |
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)) { |