From 6217076b4795f454db95c818f3375ed50f2811ea Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 11 Apr 2024 13:24:29 +0200 Subject: [PATCH] [coverity] 1543030 Dereference before null check --- winpr/libwinpr/utils/collections/StreamPool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winpr/libwinpr/utils/collections/StreamPool.c b/winpr/libwinpr/utils/collections/StreamPool.c index 910309f6a..3ff113af8 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));