From f07a9a0a4b844d12f70569ce8ca7c555ddb3cad8 Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Fri, 23 Mar 2018 00:55:29 +0100 Subject: Prevent segfault when trying to print progress (and the current status is actually NULL) --- src/ideviceinstaller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1-32-gdbae