diff options
author | Nikias Bassen | 2014-01-07 15:32:43 +0100 |
---|---|---|
committer | Nikias Bassen | 2014-01-07 15:32:43 +0100 |
commit | b9bc19376effea619c2455cb8d3fbe4ca6685c5d (patch) | |
tree | 0d0b5e87094460f38fb81e49f437f9845cd8e4fd | |
parent | 0bfec4d45b29ac992a30061b8f7190ca8fdc9cbc (diff) | |
download | usbmuxd-b9bc19376effea619c2455cb8d3fbe4ca6685c5d.tar.gz usbmuxd-b9bc19376effea619c2455cb8d3fbe4ca6685c5d.tar.bz2 |
conf: fix wrong check for parameter that made SavePairRecord always fail
-rw-r--r-- | src/conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |