Set fTranslationMap to NULL in the constructor. Otherwise an error in

Create() could cause the destructor to crash.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36329 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-04-16 08:36:58 +00:00
parent b44c25de42
commit a34e7d0ec4
+1
View File
@@ -88,6 +88,7 @@ VMAddressSpace::VMAddressSpace(team_id id, addr_t base, size_t size,
fRefCount(1), fRefCount(1),
fFaultCount(0), fFaultCount(0),
fChangeCount(0), fChangeCount(0),
fTranslationMap(NULL),
fDeleting(false) fDeleting(false)
{ {
rw_lock_init(&fLock, name); rw_lock_init(&fLock, name);