diff options
author | Martin Szulecki | 2010-11-27 19:27:03 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-11-27 19:34:41 +0100 |
commit | 0618efe5492284b1fbdd5dc296476907f670c9dd (patch) | |
tree | ca029555b3bcadff0f2408e0c6f3f841e50fefb8 | |
parent | e67a90c613f0d77d6394a45fc89b418117db2cc2 (diff) | |
download | libimobiledevice-0618efe5492284b1fbdd5dc296476907f670c9dd.tar.gz libimobiledevice-0618efe5492284b1fbdd5dc296476907f670c9dd.tar.bz2 |
Make sure uuid argument of idevice_get_uuid() is set
-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); |