summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-11-27 19:27:03 +0100
committerGravatar Martin Szulecki2010-11-27 19:34:41 +0100
commit0618efe5492284b1fbdd5dc296476907f670c9dd (patch)
treeca029555b3bcadff0f2408e0c6f3f841e50fefb8 /src
parente67a90c613f0d77d6394a45fc89b418117db2cc2 (diff)
downloadlibimobiledevice-0618efe5492284b1fbdd5dc296476907f670c9dd.tar.gz
libimobiledevice-0618efe5492284b1fbdd5dc296476907f670c9dd.tar.bz2
Make sure uuid argument of idevice_get_uuid() is set
Diffstat (limited to 'src')
-rw-r--r--src/idevice.c2
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);