summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Matthias Ringwald2016-04-29 20:27:32 +0200
committerGravatar Nikias Bassen2016-04-29 20:27:32 +0200
commitcca7ce77d8bde998933ef8a753407b043806c1a6 (patch)
treed11c3642fd17301d92d87862e0e8627a4ff84754 /tools
parent692f7c9de72ca7fcaba51659972270d445751438 (diff)
downloadlibimobiledevice-cca7ce77d8bde998933ef8a753407b043806c1a6.tar.gz
libimobiledevice-cca7ce77d8bde998933ef8a753407b043806c1a6.tar.bz2
idevicedebug: Show error if container info not found
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicedebug.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/tools/idevicedebug.c b/tools/idevicedebug.c
index b00893d..f18254a 100644
--- a/tools/idevicedebug.c
+++ b/tools/idevicedebug.c
@@ -317,16 +317,14 @@ int main(int argc, char *argv[])
instproxy_client_free(instproxy_client);
instproxy_client = NULL;
- if (container) {
- if (plist_get_node_type(container) == PLIST_STRING) {
- plist_get_string_val(container, &working_directory);
- debug_info("working_directory: %s\n", working_directory);
- plist_free(container);
- } else {
- plist_free(container);
- fprintf(stderr, "Could not determine container path for bundle identifier %s.\n", bundle_identifier);
- goto cleanup;
- }
+ if (container && (plist_get_node_type(container) == PLIST_STRING)) {
+ plist_get_string_val(container, &working_directory);
+ debug_info("working_directory: %s\n", working_directory);
+ plist_free(container);
+ } else {
+ plist_free(container);
+ fprintf(stderr, "Could not determine container path for bundle identifier %s.\n", bundle_identifier);
+ goto cleanup;
}
/* start and connect to debugserver */