From 18dd35546359a45b15cc09ac124e98be200fc681 Mon Sep 17 00:00:00 2001 From: xiao-77 Date: Tue, 21 Jan 2025 11:37:26 +0800 Subject: [PATCH] Fix build error. --- source/util/src/tqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/util/src/tqueue.c b/source/util/src/tqueue.c index fd55851cc6..1e42ac1d86 100644 --- a/source/util/src/tqueue.c +++ b/source/util/src/tqueue.c @@ -167,7 +167,7 @@ int32_t taosAllocateQitem(int32_t size, EQItype itype, int64_t dataSize, void ** tsApplyMemoryAllowed); (void)atomic_sub_fetch_64(&tsApplyMemoryUsed, size + dataSize); terrno = TSDB_CODE_OUT_OF_RPC_MEMORY_QUEUE; - return NULL; + return (terrno = TSDB_CODE_OUT_OF_RPC_MEMORY_QUEUE); } }