From 80b22baabdcfd8eb3db7bf96403e7feef80bcfcc Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Mon, 26 Oct 2020 22:42:54 +0000 Subject: [PATCH] TD-1732 --- src/client/src/tscFunctionImpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscFunctionImpl.c b/src/client/src/tscFunctionImpl.c index 44f00c448a..e12a3a65bf 100644 --- a/src/client/src/tscFunctionImpl.c +++ b/src/client/src/tscFunctionImpl.c @@ -2461,7 +2461,7 @@ static void percentile_function(SQLFunctionCtx *pCtx) { // the first stage, only acquire the min/max value if (pInfo->stage == 0) { if (pCtx->preAggVals.isSet) { - double tmin, tmax; + double tmin = 0.0, tmax = 0.0; if (pCtx->inputType >= TSDB_DATA_TYPE_TINYINT && pCtx->inputType <= TSDB_DATA_TYPE_BIGINT) { tmin = GET_INT64_VAL(&pCtx->preAggVals.statis.min); tmax = GET_INT64_VAL(&pCtx->preAggVals.statis.max); -- GitLab