summaryrefslogtreecommitdiffstats
path: root/src/libusbmuxd.c
diff options
context:
space:
mode:
authorGravatar Aaron Burghardt2014-06-12 14:24:53 -0400
committerGravatar Martin Szulecki2014-06-20 13:55:06 +0200
commit36d522c13352f782a692c9ebc18cae2c39005895 (patch)
tree07190bf25512bb990d1bed19b0753786e2d40093 /src/libusbmuxd.c
parent7b1acb21bc2dd542e9f14f3d14b816661aa70168 (diff)
downloadlibusbmuxd-36d522c13352f782a692c9ebc18cae2c39005895.tar.gz
libusbmuxd-36d522c13352f782a692c9ebc18cae2c39005895.tar.bz2
Properly dereference record_data to check that it's set.
Signed-off-by: Martin Szulecki <m.szulecki@libimobiledevice.org>
Diffstat (limited to 'src/libusbmuxd.c')
-rw-r--r--src/libusbmuxd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c
index 2379452..4e2054d 100644
--- a/src/libusbmuxd.c
+++ b/src/libusbmuxd.c
@@ -1167,7 +1167,7 @@ int usbmuxd_read_pair_record(const char* record_id, char **record_data, uint32_t
if (node && plist_get_node_type(node) == PLIST_DATA) {
uint64_t int64val = 0;
plist_get_data_val(node, record_data, &int64val);
- if (record_data && int64val > 0) {
+ if (*record_data && int64val > 0) {
*record_size = (uint32_t)int64val;
ret = 0;
}