_InitReader(): source can only be NULL if we tried to allocate it ourself, so
we can set fErr to B_NO_MEMORY in that case. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30989 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -392,8 +392,10 @@ BMediaFile::_InitReader(BDataIO* source, int32 flags)
|
||||
{
|
||||
CALLED();
|
||||
|
||||
if (source == NULL)
|
||||
if (source == NULL) {
|
||||
fErr = B_NO_MEMORY;
|
||||
return;
|
||||
}
|
||||
|
||||
fSource = source;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user