when loadable modules are disabled, if someone tries to load a module that does not...
[asterisk/asterisk.git] / main / loader.c
index 79aca11..3957115 100644 (file)
@@ -587,6 +587,8 @@ static enum ast_module_load_result load_resource(const char *resource_name, unsi
                                return AST_MODULE_LOAD_SKIP;
                        }
                }
+#else
+               return AST_MODULE_LOAD_DECLINE;
 #endif
        }