* uses std::nothrow when calling new.

* fix an UDF reference.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40281 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2011-01-24 21:33:20 +00:00
parent 35edda8f0b
commit 85f15b4bf0
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ static uint16 kCrcTable[256] = {
};
/*! \brief Calculates the UDF crc checksum for the given byte stream.
/*! \brief Calculates the EXT4 crc checksum for the given byte stream.
Based on crc code from UDF-2.50 6.5, as permitted.
This is reversed.

View File

@ -119,7 +119,7 @@ static status_t
ext2_mount(fs_volume* _volume, const char* device, uint32 flags,
const char* args, ino_t* _rootID)
{
Volume* volume = new Volume(_volume);
Volume* volume = new(std::nothrow) Volume(_volume);
if (volume == NULL)
return B_NO_MEMORY;
@ -221,7 +221,7 @@ ext2_get_vnode(fs_volume* _volume, ino_t id, fs_vnode* _node, int* _type,
return B_BAD_VALUE;
}
Inode* inode = new Inode(volume, id);
Inode* inode = new(std::nothrow) Inode(volume, id);
if (inode == NULL)
return B_NO_MEMORY;