set _parent in create()

git-svn-id: https://profuse.googlecode.com/svn/branches/v2@310 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
ksherlock 2010-05-31 00:35:33 +00:00
parent 6a4e4f4f7f
commit f81205b63f

View File

@ -595,6 +595,7 @@ FileEntry *VolumeEntry::create(const char *name, unsigned blocks)
_fileCount++;
curr = entry.release();
curr->_parent = this;
curr->_firstBlock = lastBlock;
curr->_lastBlock = lastBlock + 1;
curr->_lastByte = 0;
@ -624,6 +625,7 @@ FileEntry *VolumeEntry::create(const char *name, unsigned blocks)
curr = entry.release();
curr->_parent = this;
curr->_firstBlock = lastBlock;
curr->_lastBlock = lastBlock + 1;
curr->_lastByte = 0;