[coverity] 1543030 Dereference before null check

This commit is contained in:
akallabeth 2024-04-11 13:24:29 +02:00 committed by Martin Fleisz
parent f9d4b75610
commit 6217076b47

View File

@ -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));