Fixed potential crash in ZLInputStreamDecorator::open()
This commit is contained in:
parent
c143108ff3
commit
a6a17622d7
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ ZLInputStreamDecorator::ZLInputStreamDecorator(shared_ptr<ZLInputStream> decorat
|
|||
|
||||
bool ZLInputStreamDecorator::open() {
|
||||
bool result = myBaseStream->open();
|
||||
myBaseOffset = myBaseStream->offset();
|
||||
if (result) myBaseOffset = myBaseStream->offset();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue