From 029444e1c23705e6821a5e0015154d8dce9ba76c Mon Sep 17 00:00:00 2001 From: slzhou Date: Tue, 28 Feb 2023 10:39:08 +0800 Subject: [PATCH] fix: use const for name and path in SScriptUdfInfo --- include/libs/function/taosudf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libs/function/taosudf.h b/include/libs/function/taosudf.h index 8277ff2c50..3e796da236 100644 --- a/include/libs/function/taosudf.h +++ b/include/libs/function/taosudf.h @@ -271,7 +271,7 @@ typedef enum EUdfFuncType { } EUdfFuncType; typedef struct SScriptUdfInfo { - char *name; + const char *name; EUdfFuncType funcType; int8_t scriptType; @@ -279,7 +279,7 @@ typedef struct SScriptUdfInfo { int32_t outputLen; int32_t bufSize; - char *path; + const char *path; } SScriptUdfInfo; typedef int32_t (*TScriptUdfScalarProcFunc)(SUdfDataBlock *block, SUdfColumn *resultCol, void *udfCtx);