FS-4004 --resolve

Thanks to Kyle A. King for pointing this out and to William King for
collaboration.
This commit is contained in:
Travis Cross 2012-03-14 20:31:34 +00:00
parent d8d4d2086e
commit b186944049
1 changed files with 5 additions and 0 deletions

View File

@ -1270,6 +1270,11 @@ static switch_status_t switch_loadable_module_load_file(char *path, char *filena
break;
}
if (!module_interface) {
err = "Module failed to initialize its module_interface. Is this a valid module?";
break;
}
if ((module = switch_core_alloc(pool, sizeof(switch_loadable_module_t))) == 0) {
err = "Could not allocate memory\n";
abort();