mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-05 12:41:38 +00:00
Don't crash in the odd event you have no modules loaded
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12430 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a9fbc0fe3f
commit
7abd9b3d5e
@ -1267,6 +1267,10 @@ SWITCH_DECLARE(void) switch_loadable_module_shutdown(void)
|
|||||||
void *val;
|
void *val;
|
||||||
switch_loadable_module_t *module;
|
switch_loadable_module_t *module;
|
||||||
|
|
||||||
|
if (!loadable_modules.module_hash) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (hi = switch_hash_first(NULL, loadable_modules.module_hash); hi; hi = switch_hash_next(hi)) {
|
for (hi = switch_hash_first(NULL, loadable_modules.module_hash); hi; hi = switch_hash_next(hi)) {
|
||||||
switch_hash_this(hi, NULL, NULL, &val);
|
switch_hash_this(hi, NULL, NULL, &val);
|
||||||
module = (switch_loadable_module_t *) val;
|
module = (switch_loadable_module_t *) val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user