diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/idevicedebug.c | 18 |
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[]) | |||
| 317 | instproxy_client_free(instproxy_client); | 317 | instproxy_client_free(instproxy_client); |
| 318 | instproxy_client = NULL; | 318 | instproxy_client = NULL; |
| 319 | 319 | ||
| 320 | if (container) { | 320 | if (container && (plist_get_node_type(container) == PLIST_STRING)) { |
| 321 | if (plist_get_node_type(container) == PLIST_STRING) { | 321 | plist_get_string_val(container, &working_directory); |
| 322 | plist_get_string_val(container, &working_directory); | 322 | debug_info("working_directory: %s\n", working_directory); |
| 323 | debug_info("working_directory: %s\n", working_directory); | 323 | plist_free(container); |
| 324 | plist_free(container); | 324 | } else { |
| 325 | } else { | 325 | plist_free(container); |
| 326 | plist_free(container); | 326 | fprintf(stderr, "Could not determine container path for bundle identifier %s.\n", bundle_identifier); |
| 327 | fprintf(stderr, "Could not determine container path for bundle identifier %s.\n", bundle_identifier); | 327 | goto cleanup; |
| 328 | goto cleanup; | ||
| 329 | } | ||
| 330 | } | 328 | } |
| 331 | 329 | ||
| 332 | /* start and connect to debugserver */ | 330 | /* start and connect to debugserver */ |
