diff options
author | 2020-12-23 17:32:57 -0800 | |
---|---|---|
committer | 2022-04-22 16:30:45 +0200 | |
commit | c461e6d76b27b11284dda66316263696d5266764 (patch) | |
tree | 3d612fc904046a381438cf008448aaf4a1424f10 /tools/idevicepair.c | |
parent | 95316d81633120244d53b85303447beb1a917f74 (diff) | |
download | libimobiledevice-c461e6d76b27b11284dda66316263696d5266764.tar.gz libimobiledevice-c461e6d76b27b11284dda66316263696d5266764.tar.bz2 |
[clang-tidy] Fix bugprone string compare
Found with bugprone-suspicious-string-compare
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'tools/idevicepair.c')
-rw-r--r-- | tools/idevicepair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicepair.c b/tools/idevicepair.c index a2dc944..f42f498 100644 --- a/tools/idevicepair.c +++ b/tools/idevicepair.c | |||
@@ -411,7 +411,7 @@ int main(int argc, char **argv) | |||
411 | result = EXIT_FAILURE; | 411 | result = EXIT_FAILURE; |
412 | goto leave; | 412 | goto leave; |
413 | } else { | 413 | } else { |
414 | if (strcmp("com.apple.mobile.lockdown", type)) { | 414 | if (strcmp("com.apple.mobile.lockdown", type) != 0) { |
415 | printf("WARNING: QueryType request returned '%s'\n", type); | 415 | printf("WARNING: QueryType request returned '%s'\n", type); |
416 | } | 416 | } |
417 | free(type); | 417 | free(type); |