Skip to content

Commit 7bc9861

Browse files
committed
clang-tidy: use strcmmp properly
Signed-off-by: Rosen Penev <[email protected]>
1 parent 7a826ac commit 7bc9861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pngimage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void PngImage::printStructure(std::ostream& out, PrintStructureOption option, in
210210
const size_t imgSize = io_->size();
211211
DataBuf cheaderBuf(8);
212212

213-
while (!io_->eof() && ::strcmp(chType, "IEND")) {
213+
while (!io_->eof() && ::strcmp(chType, "IEND") != 0) {
214214
size_t address = io_->tell();
215215

216216
size_t bufRead = io_->read(cheaderBuf.data(), cheaderBuf.size());

0 commit comments

Comments
 (0)