aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-15 13:26:47 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-15 13:26:47 +0000
commit8637480155955f77cb269756015deb97217133a5 (patch)
tree7f22c9c258837984fa7f0bde62339a110f2b3767
parentedc43a68f72319d9f09d90738dbe248369d6f377 (diff)
downloadrspamd-8637480155955f77cb269756015deb97217133a5.tar.gz
rspamd-8637480155955f77cb269756015deb97217133a5.zip
[Minor] Another similar `getline` fix
-rw-r--r--src/lua/lua_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index d1d64b79c..612017d51 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Vsevolod Stakhov
+ * Copyright 2024 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -2469,7 +2469,7 @@ lua_util_readline(lua_State *L)
{
LUA_TRACE_POINT;
const gchar *prompt = "";
- gchar *input;
+ gchar *input = NULL;
if (lua_type(L, 1) == LUA_TSTRING) {
prompt = lua_tostring(L, 1);