From eb6887be4ae53094c51a005b47649ff0064b80d9 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Wed, 31 May 2023 10:12:00 +0300 Subject: [PATCH] auth: db-lua - Ensure fn gets set in auth_lua_script_init() Satisfies static analysers --- src/auth/db-lua.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/auth/db-lua.c b/src/auth/db-lua.c index 58bfc7e029..d6962391e9 100644 --- a/src/auth/db-lua.c +++ b/src/auth/db-lua.c @@ -450,6 +450,8 @@ int auth_lua_script_init(const struct auth_lua_script_parameters *params, case AUTH_LUA_SCRIPT_TYPE_USERDB: fn = AUTH_LUA_USERDB_INIT; break; + default: + i_unreached(); } if (!dlua_script_has_function(script, fn)) return 0; -- 2.47.3