PackageDataInlineReader: Do not use fData before it has been set.
Spotted by Clang.
This commit is contained in:
@@ -80,7 +80,7 @@ class PackageDataInlineReader : public BBufferDataReader {
|
||||
public:
|
||||
PackageDataInlineReader(const BPackageData& data)
|
||||
:
|
||||
BBufferDataReader(fData.InlineData(), data.Size()),
|
||||
BBufferDataReader(data.InlineData(), data.Size()),
|
||||
fData(data)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -403,7 +403,7 @@ class PackageDataInlineReader : public BBufferDataReader {
|
||||
public:
|
||||
PackageDataInlineReader(const BPackageData& data)
|
||||
:
|
||||
BBufferDataReader(fData.InlineData(), data.UncompressedSize()),
|
||||
BBufferDataReader(data.InlineData(), data.UncompressedSize()),
|
||||
fData(data)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user