diff --git a/main/manager.c b/main/manager.c index 94782418ca..319b5ba86f 100644 --- a/main/manager.c +++ b/main/manager.c @@ -4586,7 +4586,7 @@ static int manager_moduleload(struct mansession *s, const struct message *m) astman_send_ack(s, m, "Module unloaded."); } } else if (!strcasecmp(loadtype, "reload")) { - if (module != NULL) { + if (!ast_strlen_zero(module)) { res = ast_module_reload(module); if (res == 0) { astman_send_error(s, m, "No such module.");