From: Naveen Albert Date: Mon, 17 Nov 2025 21:14:16 +0000 (-0500) Subject: app_reload: Fix Reload() without arguments. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403d1e5da2c9c3fcb0a3d64afad12661f4fd6f87;p=thirdparty%2Fasterisk.git app_reload: Fix Reload() without arguments. Calling Reload() without any arguments is supposed to reload everything (equivalent to a 'core reload'), but actually does nothing. This is because it was calling ast_module_reload with an empty string, and the argument needs to explicitly be NULL. Resolves: #1597 --- diff --git a/apps/app_reload.c b/apps/app_reload.c index 647edfb922..0844ce0d3a 100644 --- a/apps/app_reload.c +++ b/apps/app_reload.c @@ -85,7 +85,7 @@ static int reload_exec(struct ast_channel *chan, const char *data) targets = ast_strdupa(data); ast_autoservice_start(chan); if (ast_strlen_zero(targets)) { /* Reload everything */ - res = ast_module_reload(targets); + res = ast_module_reload(NULL); } else { while((target = ast_strsep(&targets, ',', AST_STRSEP_ALL))) { res |= ast_module_reload(target);