summaryrefslogtreecommitdiffstats
path: root/winpr/libwinpr/utils/collections/StreamPool.c
diff options
context:
space:
mode:
Diffstat (limited to 'winpr/libwinpr/utils/collections/StreamPool.c')
-rw-r--r--winpr/libwinpr/utils/collections/StreamPool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/winpr/libwinpr/utils/collections/StreamPool.c b/winpr/libwinpr/utils/collections/StreamPool.c
index 910309f..3ff113a 100644
--- a/winpr/libwinpr/utils/collections/StreamPool.c
+++ b/winpr/libwinpr/utils/collections/StreamPool.c
@@ -211,7 +211,7 @@ wStream* StreamPool_Take(wStreamPool* pool, size_t size)
if (!s)
goto out_fail;
}
- else
+ else if (s)
{
Stream_SetPosition(s, 0);
Stream_SetLength(s, Stream_Capacity(s));