removed double if statements for same condition

This commit is contained in:
Paul Cruz 2017-06-20 11:59:45 -07:00
parent 72e0ac9929
commit c594507871

View File

@ -960,11 +960,9 @@ static int getFileInfo(fileInfo_t* info, const char* inFileName){
/* check if checksum is used */ /* check if checksum is used */
BYTE const frameHeaderDescriptor = headerBuffer[4]; BYTE const frameHeaderDescriptor = headerBuffer[4];
int const contentChecksumFlag = (frameHeaderDescriptor & (1 << 2)) >> 2; int const contentChecksumFlag = (frameHeaderDescriptor & (1 << 2)) >> 2;
if (contentChecksumFlag) {
info->usesCheck = 1;
}
if (contentChecksumFlag) { if (contentChecksumFlag) {
int const ret = fseek(srcFile, 4, SEEK_CUR); int const ret = fseek(srcFile, 4, SEEK_CUR);
info->usesCheck = 1;
if (ret != 0) { if (ret != 0) {
DISPLAY("Error: could not skip past checksum\n"); DISPLAY("Error: could not skip past checksum\n");
detectError = 1; detectError = 1;