summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-04-01 23:43:36 +0200
committerGravatar Martin Szulecki2010-04-02 00:07:01 +0200
commitec433d15c38649e6ae06d686579fd5025d96f004 (patch)
tree1c442786449d54a99dd93f2b7dba25f9a9e8b012 /src
parent76de20d18914577936e6cfce1747c04b4facb78b (diff)
downloadideviceinstaller-ec433d15c38649e6ae06d686579fd5025d96f004.tar.gz
ideviceinstaller-ec433d15c38649e6ae06d686579fd5025d96f004.tar.bz2
Don't bail out when a file is missing
Diffstat (limited to 'src')
-rw-r--r--src/ideviceinstaller.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index d13fdb9..86c6fe7 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -520,13 +520,12 @@ run_again:
520 /* extract iTunesMetadata.plist from package */ 520 /* extract iTunesMetadata.plist from package */
521 char *zbuf = NULL; 521 char *zbuf = NULL;
522 uint32_t len = 0; 522 uint32_t len = 0;
523 if (zip_f_get_contents(zf, "iTunesMetadata.plist", 0, &zbuf, &len) < 0) { 523 if (zip_f_get_contents(zf, "iTunesMetadata.plist", 0, &zbuf, &len) == 0) {
524 zip_unchange_all(zf); 524 meta = plist_new_data(zbuf, len);
525 zip_close(zf); 525 }
526 goto leave_cleanup; 526 if (zbuf) {
527 free(zbuf);
527 } 528 }
528 meta = plist_new_data(zbuf, len);
529 free(zbuf);
530 529
531 /* we need to get the CFBundleName first */ 530 /* we need to get the CFBundleName first */
532 plist_t info = NULL; 531 plist_t info = NULL;