summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-11-27 19:27:03 +0100
committerGravatar Martin Szulecki2010-11-27 19:27:03 +0100
commit243c28732e1ba7ade4772a9b203fbe193188f956 (patch)
tree946135bcde55bb26fcd328df67abb6e0d9bace5a
parentf489971b6b5a54deffa4ff3bfa8f3885d1f16228 (diff)
downloadlibimobiledevice-243c28732e1ba7ade4772a9b203fbe193188f956.tar.gz
libimobiledevice-243c28732e1ba7ade4772a9b203fbe193188f956.tar.bz2
Make sure uuid argument of idevice_get_uuid() is set
-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);