_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:
Stephan Aßmus
2009-06-07 19:47:16 +00:00
parent 60a2c42f76
commit cf8af72233
+3 -1
View File
@@ -392,8 +392,10 @@ BMediaFile::_InitReader(BDataIO* source, int32 flags)
{
CALLED();
if (source == NULL)
if (source == NULL) {
fErr = B_NO_MEMORY;
return;
}
fSource = source;