]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix autoload of modules.
authorMichael Jerris <mike@jerris.com>
Mon, 13 Oct 2008 06:42:50 +0000 (06:42 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 13 Oct 2008 06:42:50 +0000 (06:42 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9993 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_loadable_module.c

index a95cb67df8dc1002dc65b72ac736a1a82b719ba7..dc86e1baf57c274fffd86d9073e2a3bcb24c363a 100644 (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);
                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);