From 27d18c86865601673375d08573a0c512c401b280 Mon Sep 17 00:00:00 2001 From: Aaron Burghardt Date: Wed, 25 Sep 2013 21:23:32 -0400 Subject: 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 --- src/idevicerestore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit v1.1-32-gdbae