From fc598288bead276c69b290c4be84efff0d4c89f5 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Tue, 11 Oct 2022 11:29:18 +0800 Subject: [PATCH] fix: coverity issues CID: 400233 --- source/common/src/ttszip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/src/ttszip.c b/source/common/src/ttszip.c index 35ffe04e1d..3dd865e91f 100644 --- a/source/common/src/ttszip.c +++ b/source/common/src/ttszip.c @@ -52,7 +52,7 @@ STSBuf* tsBufCreate(bool autoDelete, int32_t order) { } if (!autoDelete) { - if (taosRemoveFile(pTSBuf->path) == NULL) { + if (taosRemoveFile(pTSBuf->path) != 0) { taosMemoryFree(pTSBuf); return NULL; } -- GitLab