[Freeswitch-svn] [commit] r12430 - freeswitch/trunk/src
FreeSWITCH SVN
mrene at freeswitch.org
Wed Mar 4 18:46:00 PST 2009
Author: mrene
Date: Wed Mar 4 20:46:00 2009
New Revision: 12430
Log:
Don't crash in the odd event you have no modules loaded
Modified:
freeswitch/trunk/src/switch_loadable_module.c
Modified: freeswitch/trunk/src/switch_loadable_module.c
==============================================================================
--- freeswitch/trunk/src/switch_loadable_module.c (original)
+++ freeswitch/trunk/src/switch_loadable_module.c Wed Mar 4 20:46:00 2009
@@ -1266,6 +1266,10 @@
switch_hash_index_t *hi;
void *val;
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)) {
switch_hash_this(hi, NULL, NULL, &val);
More information about the Freeswitch-svn
mailing list