summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-09-28 23:23:39 +0200
committerGravatar Nikias Bassen2017-09-28 23:23:39 +0200
commita39524af6efe2743622743c3a97087f64da4c863 (patch)
treea630ceb013579a4c062866c5fbce701db8be05b3 /src/idevicerestore.c
parentb99782b2f4466270dbea0f87757df30e7b835084 (diff)
downloadidevicerestore-a39524af6efe2743622743c3a97087f64da4c863.tar.gz
idevicerestore-a39524af6efe2743622743c3a97087f64da4c863.tar.bz2
Invert return value of build_identity_has_component()
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 5ac2437..ff9e98a 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1843,15 +1843,15 @@ void build_identity_print_information(plist_t build_identity) {
int build_identity_has_component(plist_t build_identity, const char* component) {
plist_t manifest_node = plist_dict_get_item(build_identity, "Manifest");
if (!manifest_node || plist_get_node_type(manifest_node) != PLIST_DICT) {
- return -1;
+ return 0;
}
plist_t component_node = plist_dict_get_item(manifest_node, component);
if (!component_node || plist_get_node_type(component_node) != PLIST_DICT) {
- return -1;
+ return 0;
}
- return 0;
+ return 1;
}
int build_identity_get_component_path(plist_t build_identity, const char* component, char** path) {