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/io
parent7309ee4df76bb33c598f5b982afd70069519038a (diff)
Cleanup: fixed Clang-Tidy `bugprone-suspicious-string-compare` warnings
No functional changes.
Diffstat (limited to 'source/blender/io')
-rw-r--r--source/blender/io/alembic/intern/abc_reader_archive.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/alembic/intern/abc_reader_archive.cc b/source/blender/io/alembic/intern/abc_reader_archive.cc
index d7f1095f0fd..776b8955d47 100644
--- a/source/blender/io/alembic/intern/abc_reader_archive.cc
+++ b/source/blender/io/alembic/intern/abc_reader_archive.cc
@@ -63,7 +63,7 @@ static IArchive open_archive(const std::string &filename,
else if (!the_file.read(header, sizeof(header))) {
std::cerr << "Unable to read from " << filename << std::endl;
}
- else if (strncmp(header + 1, "HDF", 3)) {
+ else if (strncmp(header + 1, "HDF", 3) != 0) {
std::cerr << filename << " has an unknown file format, unable to read." << std::endl;
}
else {