Skip to content

Commit 1a65995

Browse files
committed
value stored never read
1 parent 5944e81 commit 1a65995

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librawspeed/tiff/TiffEntry.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,12 @@ TiffEntry::TiffEntry(TiffIFD* parent_, ByteStream& bs)
5454
ThrowTPE("integer overflow in size calculation.");
5555

5656
uint32_t byte_size = count << datashifts[numType];
57-
uint32_t data_offset = UINT32_MAX;
5857

5958
if (byte_size <= 4) {
60-
data_offset = bs.getPosition();
6159
data = bs.getSubStream(bs.getPosition(), byte_size);
6260
bs.skipBytes(4);
6361
} else {
64-
data_offset = bs.getU32();
62+
uint32_t data_offset = bs.getU32();
6563
if (type == TiffDataType::OFFSET ||
6664
isIn(tag, {TiffTag::DNGPRIVATEDATA, TiffTag::MAKERNOTE,
6765
TiffTag::MAKERNOTE_ALT, TiffTag::FUJI_RAW_IFD,

0 commit comments

Comments
 (0)