提交 a01f1a4e 编写于 作者: S slzhou

fix unit test case that causes core dump

上级 49dc2040
......@@ -236,8 +236,12 @@ static int32_t dmSpawnUdfd(SDnode *pDnode) {
uv_process_options_t options = {0};
char path[PATH_MAX] = {0};
strncpy(path, tsProcPath, strlen(tsProcPath));
char* dirName = taosDirName(path);
if (tsProcPath == NULL) {
path[0] = '.';
} else {
strncpy(path, tsProcPath, strlen(tsProcPath));
taosDirName(path);
}
strcat(path, "/udfd");
char* argsUdfd[] = {path, "-c", configDir, NULL};
options.args = argsUdfd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册