summaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-01-07 15:32:43 +0100
committerGravatar Nikias Bassen2014-01-07 15:32:43 +0100
commitb9bc19376effea619c2455cb8d3fbe4ca6685c5d (patch)
tree0d0b5e87094460f38fb81e49f437f9845cd8e4fd /src/conf.c
parent0bfec4d45b29ac992a30061b8f7190ca8fdc9cbc (diff)
downloadusbmuxd-b9bc19376effea619c2455cb8d3fbe4ca6685c5d.tar.gz
usbmuxd-b9bc19376effea619c2455cb8d3fbe4ca6685c5d.tar.bz2
conf: fix wrong check for parameter that made SavePairRecord always fail
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf.c b/src/conf.c
index 2291671..ef371a3 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -399,7 +399,7 @@ int config_set_device_record(const char *udid, char* record_data, uint64_t recor
{
int res = 0;
- if (!udid || record_data || record_size < 8)
+ if (!udid || !record_data || record_size < 8)
return -EINVAL;
plist_t plist = NULL;