]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
silly type stuff
authorMichael Jerris <mike@jerris.com>
Wed, 13 Jun 2007 14:41:49 +0000 (14:41 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 13 Jun 2007 14:41:49 +0000 (14:41 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5338 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_loadable_module.c

index 267ab7083b8b83918e758649beb31ccd9e2c663e..4d4b02cff78517a5d72ad5948a7f84a35f642974 100644 (file)
@@ -641,6 +641,7 @@ static switch_status_t switch_loadable_module_load_file(char *path, char *filena
        switch_loadable_module_t *module = NULL;
        switch_dso_handle_t *dso = NULL;
        apr_status_t status = SWITCH_STATUS_SUCCESS;
+       switch_dso_handle_sym_t interface_struct_handle = NULL;
        switch_loadable_module_function_table_t *mod_interface_functions = NULL;
        char *struct_name = NULL;
        switch_dso_handle_sym_t load_function_handle = NULL;
@@ -671,8 +672,9 @@ static switch_status_t switch_loadable_module_load_file(char *path, char *filena
                }
 
                struct_name = switch_core_sprintf(pool, "%s_module_interface", filename);
-               status = switch_dso_sym(&mod_interface_functions, dso, struct_name);
-               if (mod_interface_functions) {
+               status = switch_dso_sym(&interface_struct_handle, dso, struct_name);
+               if (interface_struct_handle) {
+                       mod_interface_functions = interface_struct_handle;
                        load_func_ptr = mod_interface_functions->load;
                } else {
                        status = switch_dso_sym(&load_function_handle, dso, "switch_module_load");