From 31d22fff549612cac059798cb4c50ef366927a09 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 13 Oct 2008 06:42:50 +0000 Subject: [PATCH] fix autoload of modules. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9993 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_loadable_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index a95cb67df8..dc86e1baf5 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -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);