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 2e6c97f..532dedc 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -431,7 +431,7 @@ int config_set_device_record(const char *udid, char* record_data, uint64_t recor
431 remove(device_record_file); 431 remove(device_record_file);
432 432
433 /* store file */ 433 /* store file */
434 if (!plist_write_to_file(plist, device_record_file, PLIST_FORMAT_XML, 0)) { 434 if (plist_write_to_file(plist, device_record_file, PLIST_FORMAT_XML, 0) != PLIST_ERR_SUCCESS) {
435 usbmuxd_log(LL_DEBUG, "Could not open '%s' for writing: %s", device_record_file, strerror(errno)); 435 usbmuxd_log(LL_DEBUG, "Could not open '%s' for writing: %s", device_record_file, strerror(errno));
436 res = -ENOENT; 436 res = -ENOENT;
437 } 437 }