Oops, merge reverted this fix.
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 14 Jul 2010 21:11:09 +0000 (21:11 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 14 Jul 2010 21:11:09 +0000 (21:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@276493 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/loader.c

index 8a3d18b..0249af9 100644 (file)
@@ -836,7 +836,7 @@ static enum ast_module_load_result load_resource(const char *resource_name, unsi
                return required ? AST_MODULE_LOAD_FAILURE : AST_MODULE_LOAD_DECLINE;
        }
 
-       if (!mod->lib && mod->info->backup_globals()) {
+       if (!mod->lib && mod->info->backup_globals && mod->info->backup_globals()) {
                ast_log(LOG_WARNING, "Module '%s' was unable to backup its global data.\n", resource_name);
                return required ? AST_MODULE_LOAD_FAILURE : AST_MODULE_LOAD_DECLINE;
        }