diff options
author | Rosen Penev | 2020-12-23 17:32:57 -0800 |
---|---|---|
committer | Nikias Bassen | 2022-04-22 16:30:45 +0200 |
commit | c461e6d76b27b11284dda66316263696d5266764 (patch) | |
tree | 3d612fc904046a381438cf008448aaf4a1424f10 /src/afc.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 'src/afc.c')
-rw-r--r-- | src/afc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -235,7 +235,7 @@ static afc_error_t afc_receive_data(afc_client_t client, char **bytes, uint32_t } /* check if it's a valid AFC header */ - if (strncmp(header.magic, AFC_MAGIC, AFC_MAGIC_LEN)) { + if (strncmp(header.magic, AFC_MAGIC, AFC_MAGIC_LEN) != 0) { debug_info("Invalid AFC packet received (magic != " AFC_MAGIC ")!"); } |