fix unit test case that causes core dump
This commit is contained in:
parent
49dc204076
commit
a01f1a4e1d
|
@ -236,8 +236,12 @@ static int32_t dmSpawnUdfd(SDnode *pDnode) {
|
|||
uv_process_options_t options = {0};
|
||||
|
||||
char path[PATH_MAX] = {0};
|
||||
if (tsProcPath == NULL) {
|
||||
path[0] = '.';
|
||||
} else {
|
||||
strncpy(path, tsProcPath, strlen(tsProcPath));
|
||||
char* dirName = taosDirName(path);
|
||||
taosDirName(path);
|
||||
}
|
||||
strcat(path, "/udfd");
|
||||
char* argsUdfd[] = {path, "-c", configDir, NULL};
|
||||
options.args = argsUdfd;
|
||||
|
|
Loading…
Reference in New Issue