diff options
| author | 2013-11-14 02:29:41 +0100 | |
|---|---|---|
| committer | 2013-11-14 02:29:41 +0100 | |
| commit | e46ab67a75a7ee6ea2278fdc5c88c2a036d8ac0b (patch) | |
| tree | cb9c3964f099171fec3d8be34074a6801e8aa131 /src | |
| parent | 415db56e3d97bfb86b1bb4b48c1370c78353068b (diff) | |
| download | ideviceinstaller-e46ab67a75a7ee6ea2278fdc5c88c2a036d8ac0b.tar.gz ideviceinstaller-e46ab67a75a7ee6ea2278fdc5c88c2a036d8ac0b.tar.bz2 | |
Push bundleidentifier variable further out in scope to allow broader use
Diffstat (limited to 'src')
| -rw-r--r-- | src/ideviceinstaller.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index d1fcfc1..32f488a 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c | |||
| @@ -493,6 +493,7 @@ int main(int argc, char **argv) | |||
| 493 | uint16_t service = 0; | 493 | uint16_t service = 0; |
| 494 | #endif | 494 | #endif |
| 495 | int res = 0; | 495 | int res = 0; |
| 496 | char *bundleidentifier = NULL; | ||
| 496 | 497 | ||
| 497 | parse_opts(argc, argv); | 498 | parse_opts(argc, argv); |
| 498 | 499 | ||
| @@ -876,7 +877,6 @@ run_again: | |||
| 876 | } | 877 | } |
| 877 | 878 | ||
| 878 | char *bundleexecutable = NULL; | 879 | char *bundleexecutable = NULL; |
| 879 | char *bundleidentifier = NULL; | ||
| 880 | 880 | ||
| 881 | plist_t bname = plist_dict_get_item(info, "CFBundleExecutable"); | 881 | plist_t bname = plist_dict_get_item(info, "CFBundleExecutable"); |
| 882 | if (bname) { | 882 | if (bname) { |
| @@ -1314,7 +1314,10 @@ run_again: | |||
| 1314 | 1314 | ||
| 1315 | idevice_wait_for_operation_to_complete(); | 1315 | idevice_wait_for_operation_to_complete(); |
| 1316 | 1316 | ||
| 1317 | leave_cleanup: | 1317 | leave_cleanup: |
| 1318 | if (bundleidentifier) { | ||
| 1319 | free(bundleidentifier); | ||
| 1320 | } | ||
| 1318 | if (np) { | 1321 | if (np) { |
| 1319 | np_client_free(np); | 1322 | np_client_free(np); |
| 1320 | } | 1323 | } |
