diff options
Diffstat (limited to 'src/mobilesync.c')
| -rw-r--r-- | src/mobilesync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mobilesync.c b/src/mobilesync.c index 4fe24b2..af70ea4 100644 --- a/src/mobilesync.c +++ b/src/mobilesync.c | |||
| @@ -81,7 +81,7 @@ static mobilesync_error_t mobilesync_error(device_link_service_error_t err) | |||
| 81 | mobilesync_error_t mobilesync_client_new(idevice_t device, lockdownd_service_descriptor_t service, | 81 | mobilesync_error_t mobilesync_client_new(idevice_t device, lockdownd_service_descriptor_t service, |
| 82 | mobilesync_client_t * client) | 82 | mobilesync_client_t * client) |
| 83 | { | 83 | { |
| 84 | if (!device || service->port == 0 || !client || *client) | 84 | if (!device || !service || service->port == 0 || !client || *client) |
| 85 | return MOBILESYNC_E_INVALID_ARG; | 85 | return MOBILESYNC_E_INVALID_ARG; |
| 86 | 86 | ||
| 87 | device_link_service_client_t dlclient = NULL; | 87 | device_link_service_client_t dlclient = NULL; |
