提交 31d22fff authored 作者: Michael Jerris's avatar Michael Jerris

fix autoload of modules.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9993 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 1f47ff15
......@@ -815,11 +815,11 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_load_module(char *dir, ch
path = switch_core_strdup(loadable_modules.pool, file);
file = (char *) switch_cut_path(file);
if ((dot = strchr(file, '.'))) {
dot = '\0';
*dot = '\0';
}
} else {
if ((dot = strchr(file, '.'))) {
dot = '\0';
*dot = '\0';
}
len = strlen(dir);
len += strlen(file);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论