Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-08-07 18:16:46 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-08-07 18:16:49 +0300
commita9c91ce331102498a40ab84328ccd1390ec98eba (patch)
treec78811a704f7aff767eb14e02a373e9f6bcc0220 /source/blender/blenkernel/intern/packedFile.c
parent7309ee4df76bb33c598f5b982afd70069519038a (diff)
Cleanup: fixed Clang-Tidy `bugprone-suspicious-string-compare` warnings
No functional changes.
Diffstat (limited to 'source/blender/blenkernel/intern/packedFile.c')
-rw-r--r--source/blender/blenkernel/intern/packedFile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/packedFile.c b/source/blender/blenkernel/intern/packedFile.c
index 3f3eaae697b..918cb8893ac 100644
--- a/source/blender/blenkernel/intern/packedFile.c
+++ b/source/blender/blenkernel/intern/packedFile.c
@@ -416,7 +416,7 @@ enum ePF_FileCompare BKE_packedfile_compare_to_file(const char *ref_file_name,
break;
}
- if (memcmp(buf, ((char *)pf->data) + i, len)) {
+ if (memcmp(buf, ((char *)pf->data) + i, len) != 0) {
ret_val = PF_CMP_DIFFERS;
break;
}