mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
BMessage: fix NULL pointer dereference in out of memory condition.
Change-Id: I75ba6e5069cda8a92fd88bf7d1e999232359e73c Reviewed-on: https://review.haiku-os.org/c/haiku/+/1864 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
4015b5877f
commit
d761df9f70
@ -165,8 +165,9 @@ BMessage::BMessage(BMessage* other)
|
||||
BMessage::BMessage(uint32 _what)
|
||||
{
|
||||
DEBUG_FUNCTION_ENTER;
|
||||
_InitCommon(true);
|
||||
fHeader->what = what = _what;
|
||||
if (_InitCommon(true))
|
||||
fHeader->what = _what;
|
||||
what = _what;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user