diff --git a/main/loader.c b/main/loader.c index 2a203c6a7f..a6a87a01a8 100644 --- a/main/loader.c +++ b/main/loader.c @@ -198,7 +198,7 @@ static AST_DLLIST_HEAD_STATIC(reload_queue, reload_queue_item); * * This is protected by the module_list lock. */ -static struct ast_module *resource_being_loaded; +static struct ast_module * volatile resource_being_loaded; /*! * \internal