summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authormniip <mniip@mniip.com>2016-04-04 04:28:02 +0300
committerPatrick Griffis <tingping@tingping.se>2016-04-07 18:26:58 -0700
commit5699bf9e659e5c8094b46a491d451bfc5342fc53 (patch)
treebcab334ad3d793315be30ca4e45999da347896b9 /plugins
parentc4c1c64f0058794cb26922dc88010fbf3d8e2bfa (diff)
lua: Error if luaL_newstate returns NULL
Diffstat (limited to 'plugins')
-rw-r--r--plugins/lua/lua.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/lua/lua.c b/plugins/lua/lua.c
index 0c2ecb91..00bedbe5 100644
--- a/plugins/lua/lua.c
+++ b/plugins/lua/lua.c
@@ -1306,6 +1306,7 @@ static script_info *create_script(char const *file)
 	info->state = L;
 	if(!L)
 	{
+		hexchat_print(ph, "\00304Could not allocate memory for the script");
 		g_free(info->filename);
 		free(info);
 		return NULL;
@@ -1493,6 +1494,7 @@ static void create_interpreter(void)
 	interp->state = L;
 	if(!L)
 	{
+		hexchat_print(ph, "\00304Could not allocate memory for the interpreter");
 		free(interp);
 		interp = NULL;
 		return;