Skip to content

Commit

Permalink
Fix #314687: Identical condition checked twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz authored and vpereverzev committed Dec 23, 2020
1 parent 70fcddc commit 4e7d426
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/importexport/internal/ove/ove.cpp
Expand Up @@ -9425,12 +9425,10 @@ bool LyricChunkParse::parse()

if (info.lyricSize_ > 0) {
// lyric
if (info.lyricSize_ > 0) {
if (!readBuffer(placeHolder, info.lyricSize_)) {
return false;
}
info.lyric_ = ove_->getCodecString(placeHolder.fixedSizeBufferToStrByteArray());
if (!readBuffer(placeHolder, info.lyricSize_)) {
return false;
}
info.lyric_ = ove_->getCodecString(placeHolder.fixedSizeBufferToStrByteArray());

if (!jump(4)) {
return false;
Expand Down

0 comments on commit 4e7d426

Please sign in to comment.