diff options
author | Nikias Bassen | 2022-02-04 15:39:47 +0100 |
---|---|---|
committer | Nikias Bassen | 2022-02-04 15:39:47 +0100 |
commit | cc66a407910620b99e380acb9b48445bc4b8ddff (patch) | |
tree | 37534dcd2274086e2d1c2ac2c289b087de9ed284 /src | |
parent | a64fcc3988f75cb4fc2388013c245e5e884bb96f (diff) | |
download | libimobiledevice-cc66a407910620b99e380acb9b48445bc4b8ddff.tar.gz libimobiledevice-cc66a407910620b99e380acb9b48445bc4b8ddff.tar.bz2 |
service: Silence compiler warning when configured without --enable-debug
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 2 |
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; } |