commit 5f89487: [Minor] Fix else branch

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Jul 29 20:21:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-07-29 21:20:26 +0100
URL: https://github.com/rspamd/rspamd/commit/5f89487e366ddb30b05f77e17089b22735dc5bfc (HEAD -> master)

[Minor] Fix else branch

---
 src/lua/lua_html.cxx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lua/lua_html.cxx b/src/lua/lua_html.cxx
index d20de03c0..848bfbdf3 100644
--- a/src/lua/lua_html.cxx
+++ b/src/lua/lua_html.cxx
@@ -590,6 +590,9 @@ lua_html_tag_get_content (lua_State *L)
 				t->len = ct.size();
 				t->flags = 0;
 			}
+			else {
+				lua_pushnil (L);
+			}
 		}
 		else {
 			lua_pushnil (L);


More information about the Commits mailing list