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:
Michael Jerris 2008-10-13 06:42:50 +00:00
parent 1f47ff15b3
commit 31d22fff54
1 changed files with 2 additions and 2 deletions

View File

@ -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); path = switch_core_strdup(loadable_modules.pool, file);
file = (char *) switch_cut_path(file); file = (char *) switch_cut_path(file);
if ((dot = strchr(file, '.'))) { if ((dot = strchr(file, '.'))) {
dot = '\0'; *dot = '\0';
} }
} else { } else {
if ((dot = strchr(file, '.'))) { if ((dot = strchr(file, '.'))) {
dot = '\0'; *dot = '\0';
} }
len = strlen(dir); len = strlen(dir);
len += strlen(file); len += strlen(file);