]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix override
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 10 Nov 2023 09:39:24 +0000 (09:39 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 10 Nov 2023 09:39:24 +0000 (09:39 +0000)
src/plugins/fuzzy_check.c

index 6fd1f168b9f7e6f58f0508a9b308f0a0cfedf1ac..ed85d793300499a48eb6295204fb760088268823 100644 (file)
@@ -4617,7 +4617,7 @@ fuzzy_lua_ping_storage(lua_State *L)
        if (lua_type(L, 5) == LUA_TSTRING) {
                const gchar *server_name = lua_tostring(L, 5);
                enum rspamd_parse_host_port_result res;
-               GPtrArray *addrs;
+               GPtrArray *addrs = g_ptr_array_new();
 
                /* We resolve address synchronously here! Why? Because it is an override... */
                res = rspamd_parse_host_port_priority(server_name, &addrs, 0, NULL,