inphos42 / osmpbf

Other
12 stars 9 forks source link

m_DataUnpacked must be initialized to some value #1

Closed jmena closed 9 years ago

jmena commented 9 years ago

When the constructor DenseNodesData::DenseNodesData() it called, the field m_DataUnpacked might be set to true or false. If the unpack parameter is true in the constructor, when DenseNodesData::unpackData() is called, then variable m_DataUnpacked might be true, but the data might not actually be unpacked. This causes corruption when reading files.

This PR fixed a problem caused by the fact that m_DataUnpacked is not initilized properly.

dbahrdt commented 9 years ago

afaik this has been merged already