提交 7224f7b0 authored 作者: Michael Jerris's avatar Michael Jerris

fix regression from -run addition and better handling of -stop whoops (FSCORE-474)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15247 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9a05aca8
......@@ -635,6 +635,11 @@ int main(int argc, char *argv[])
}
if (log_set && !run_set) {
SWITCH_GLOBAL_dirs.run_dir = (char *) malloc(strlen(SWITCH_GLOBAL_dirs.log_dir) + 1);
if (!SWITCH_GLOBAL_dirs.run_dir) {
fprintf(stderr, "Allocation error\n");
return 255;
}
strcpy(SWITCH_GLOBAL_dirs.run_dir, SWITCH_GLOBAL_dirs.log_dir);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论