summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-02-04 15:39:47 +0100
committerGravatar Nikias Bassen2022-02-04 15:39:47 +0100
commitcc66a407910620b99e380acb9b48445bc4b8ddff (patch)
tree37534dcd2274086e2d1c2ac2c289b087de9ed284
parenta64fcc3988f75cb4fc2388013c245e5e884bb96f (diff)
downloadlibimobiledevice-cc66a407910620b99e380acb9b48445bc4b8ddff.tar.gz
libimobiledevice-cc66a407910620b99e380acb9b48445bc4b8ddff.tar.bz2
service: Silence compiler warning when configured without --enable-debug
-rw-r--r--src/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index db529bb..0928bcd 100644
--- a/src/service.c
+++ b/src/service.c
@@ -94,7 +94,7 @@ LIBIMOBILEDEVICE_API service_error_t service_client_factory_start_service(idevic
lockdownd_error_t lerr = lockdownd_start_service(lckd, service_name, &service);
lockdownd_client_free(lckd);
- if (!service || service->port == 0) {
+ if (lerr != LOCKDOWN_E_SUCCESS) {
debug_info("Could not start service %s: %s", service_name, lockdownd_strerror(lerr));
return SERVICE_E_START_SERVICE_ERROR;
}