summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;