diff options
author | Martin Szulecki | 2013-12-05 12:48:39 +0100 |
---|---|---|
committer | Martin Szulecki | 2013-12-05 12:48:39 +0100 |
commit | 82611b04a06982df4398210881b8d45f9775a545 (patch) | |
tree | 930c88104cfddcac45da246a703a12a355efff78 /src/ideviceinstaller.c | |
parent | f88267edef5ff6fea7863ded77ff32409dc0b924 (diff) | |
download | ideviceinstaller-82611b04a06982df4398210881b8d45f9775a545.tar.gz ideviceinstaller-82611b04a06982df4398210881b8d45f9775a545.tar.bz2 |
Do not ignore result of asprintf to silence compiler warning
Diffstat (limited to 'src/ideviceinstaller.c')
-rw-r--r-- | src/ideviceinstaller.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 1fc79bb..2af715e 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -805,7 +805,10 @@ run_again: /* upload developer app directory */ instproxy_client_options_add(client_opts, "PackageType", "Developer", NULL); - asprintf(&pkgname, "%s/%s", PKG_PATH, basename(appid)); + if (asprintf(&pkgname, "%s/%s", PKG_PATH, basename(appid)) < 0) { + fprintf(stderr, "ERROR: Out of memory allocating pkgname!?\n"); + goto leave_cleanup; + } printf("Uploading %s package contents... ", basename(appid)); afc_upload_dir(afc, appid, pkgname); |