[haiku-commits] r36329 - haiku/trunk/src/system/kernel/vm

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 16 Apr 2010 10:36:58 +0200 (CEST)

Author: bonefish
Date: 2010-04-16 10:36:58 +0200 (Fri, 16 Apr 2010)
New Revision: 36329
Changeset: http://dev.haiku-os.org/changeset/36329/haiku

Modified:
   haiku/trunk/src/system/kernel/vm/VMAddressSpace.cpp
Log:
Set fTranslationMap to NULL in the constructor. Otherwise an error in
Create() could cause the destructor to crash.


Modified: haiku/trunk/src/system/kernel/vm/VMAddressSpace.cpp
===================================================================
--- haiku/trunk/src/system/kernel/vm/VMAddressSpace.cpp 2010-04-16 07:47:41 UTC 
(rev 36328)
+++ haiku/trunk/src/system/kernel/vm/VMAddressSpace.cpp 2010-04-16 08:36:58 UTC 
(rev 36329)
@@ -88,6 +88,7 @@
        fRefCount(1),
        fFaultCount(0),
        fChangeCount(0),
+       fTranslationMap(NULL),
        fDeleting(false)
 {
        rw_lock_init(&fLock, name);


Other related posts:

  • » [haiku-commits] r36329 - haiku/trunk/src/system/kernel/vm - ingo_weinhold