From c461e6d76b27b11284dda66316263696d5266764 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 23 Dec 2020 17:32:57 -0800 Subject: [clang-tidy] Fix bugprone string compare Found with bugprone-suspicious-string-compare Signed-off-by: Rosen Penev --- src/mobilesync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mobilesync.c') diff --git a/src/mobilesync.c b/src/mobilesync.c index 8881e75..e50226c 100644 --- a/src/mobilesync.c +++ b/src/mobilesync.c @@ -473,7 +473,7 @@ LIBIMOBILEDEVICE_API mobilesync_error_t mobilesync_clear_all_records_on_device(m goto out; } - if (strcmp(response_type, "SDMessageDeviceWillClearAllRecords")) { + if (strcmp(response_type, "SDMessageDeviceWillClearAllRecords") != 0) { err = MOBILESYNC_E_PLIST_ERROR; } -- cgit v1.1-32-gdbae