summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Greg Dennis2018-03-23 00:55:29 +0100
committerGravatar Nikias Bassen2018-03-23 00:55:29 +0100
commitf07a9a0a4b844d12f70569ce8ca7c555ddb3cad8 (patch)
treeb75ed6908ed73cd7aa33b7b0c1642b30a41fd99a
parent442f670a01f82c63d1316d60f1f47191b8bc6b5a (diff)
downloadideviceinstaller-f07a9a0a4b844d12f70569ce8ca7c555ddb3cad8.tar.gz
ideviceinstaller-f07a9a0a4b844d12f70569ce8ca7c555ddb3cad8.tar.bz2
Prevent segfault when trying to print progress (and the current status is actually NULL)
-rw-r--r--src/ideviceinstaller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 0f9cc99..8b40bb3 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -180,7 +180,7 @@ static void status_cb(plist_t command, plist_t status, void *unused)
print_apps(current_list);
plist_free(current_list);
}
- } else {
+ } else if (status_name) {
/* get progress if any */
int percent = -1;
instproxy_status_get_percent_complete(status, &percent);