]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix irrelevant issue with the `getline` invocation
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 15 Mar 2024 13:25:27 +0000 (13:25 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 15 Mar 2024 13:25:27 +0000 (13:25 +0000)
src/rspamadm/lua_repl.c

index d3f32c9db7eeee4beb6d2a7b851db18a31f8d7cb..a3d5541fdb6616e350c897019778abdddc145300 100644 (file)
@@ -604,7 +604,7 @@ lua_syntax_highlighter(const char *str, ReplxxColor *colours, int size, void *ud
 static void
 rspamadm_lua_run_repl(lua_State *L, bool is_batch)
 {
-       gchar *input;
+       gchar *input = NULL;
 #ifdef WITH_LUA_REPL
        gboolean is_multiline = FALSE;
        GString *tb = NULL;