diff options
-rw-r--r-- | src/idevice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idevice.c b/src/idevice.c index 39b95c1..5a9d49b 100644 --- a/src/idevice.c +++ b/src/idevice.c @@ -445,7 +445,7 @@ idevice_error_t idevice_get_handle(idevice_t device, uint32_t *handle) */ idevice_error_t idevice_get_uuid(idevice_t device, char **uuid) { - if (!device) + if (!device || !uuid) return IDEVICE_E_INVALID_ARG; *uuid = strdup(device->uuid); |