fst query
This commit is contained in:
parent
33bd962894
commit
3f23495983
|
@ -164,15 +164,7 @@ AutomationCtx* automCtxCreate(void* data, AutomationType atype) {
|
||||||
// add more search type
|
// add more search type
|
||||||
}
|
}
|
||||||
|
|
||||||
char* dst = NULL;
|
ctx->data = strdup((char*)data);
|
||||||
if (data != NULL) {
|
|
||||||
char* src = (char*)data;
|
|
||||||
size_t len = strlen(src);
|
|
||||||
dst = (char*)taosMemoryCalloc(1, len * sizeof(char) + 1);
|
|
||||||
memcpy(dst, src, len);
|
|
||||||
}
|
|
||||||
|
|
||||||
ctx->data = dst;
|
|
||||||
ctx->type = atype;
|
ctx->type = atype;
|
||||||
ctx->stdata = (void*)sv;
|
ctx->stdata = (void*)sv;
|
||||||
return ctx;
|
return ctx;
|
||||||
|
|
Loading…
Reference in New Issue