From 5eb7836977b1003a1ba91677c69ad99e88c40834 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Fri, 10 Nov 2023 10:29:37 +0100 Subject: [PATCH] revert --- src/SDL_dataqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SDL_dataqueue.c b/src/SDL_dataqueue.c index 30fc336f8c1b49..4176f1361ace59 100644 --- a/src/SDL_dataqueue.c +++ b/src/SDL_dataqueue.c @@ -162,7 +162,7 @@ static SDL_DataQueuePacket *AllocateDataQueuePacket(SDL_DataQueue *queue) packet->startpos = 0; packet->next = NULL; - SDL_assert((queue->head) == (queue->queued_bytes != 0)); + SDL_assert((queue->head != NULL) == (queue->queued_bytes != 0)); if (!queue->tail) { queue->head = packet; } else { @@ -292,7 +292,7 @@ SDL_ReadFromDataQueue(SDL_DataQueue *queue, void *_buf, const size_t _len) } } - SDL_assert((queue->head) == (queue->queued_bytes != 0)); + SDL_assert((queue->head != NULL) == (queue->queued_bytes != 0)); if (!queue->head) { queue->tail = NULL; /* in case we drained the queue entirely. */