fix autoload of modules.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9993 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1f47ff15b3
commit
31d22fff54
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue