diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 18:16:46 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 18:16:49 +0300 |
commit | a9c91ce331102498a40ab84328ccd1390ec98eba (patch) | |
tree | c78811a704f7aff767eb14e02a373e9f6bcc0220 /source/blender/io/alembic | |
parent | 7309ee4df76bb33c598f5b982afd70069519038a (diff) |
Cleanup: fixed Clang-Tidy `bugprone-suspicious-string-compare` warnings
No functional changes.
Diffstat (limited to 'source/blender/io/alembic')
-rw-r--r-- | source/blender/io/alembic/intern/abc_reader_archive.cc | 2 |
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 { |