[coverity] 1543030 Dereference before null check
This commit is contained in:
parent
f9d4b75610
commit
6217076b47
@ -211,7 +211,7 @@ wStream* StreamPool_Take(wStreamPool* pool, size_t size)
|
|||||||
if (!s)
|
if (!s)
|
||||||
goto out_fail;
|
goto out_fail;
|
||||||
}
|
}
|
||||||
else
|
else if (s)
|
||||||
{
|
{
|
||||||
Stream_SetPosition(s, 0);
|
Stream_SetPosition(s, 0);
|
||||||
Stream_SetLength(s, Stream_Capacity(s));
|
Stream_SetLength(s, Stream_Capacity(s));
|
||||||
|
Loading…
Reference in New Issue
Block a user