Fixed potential crash in ZLInputStreamDecorator::open()

This commit is contained in:
Slava Monich 2015-06-17 01:00:56 +03:00
parent c143108ff3
commit a6a17622d7

View file

@ -24,7 +24,7 @@ ZLInputStreamDecorator::ZLInputStreamDecorator(shared_ptr<ZLInputStream> decorat
bool ZLInputStreamDecorator::open() { bool ZLInputStreamDecorator::open() {
bool result = myBaseStream->open(); bool result = myBaseStream->open();
myBaseOffset = myBaseStream->offset(); if (result) myBaseOffset = myBaseStream->offset();
return result; return result;
} }