mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
Fixed crash with "register" function in plugin scripts (bug #16701)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2006-05-25
|
||||
ChangeLog - 2006-05-30
|
||||
|
||||
Version 0.2.0 (under dev!):
|
||||
* fixed crash with "register" function in plugin scripts (bug #16701)
|
||||
* fixed random crash at exit (/quit or /upgrade) with splited windows
|
||||
|
||||
Version 0.1.9 (2006-05-25):
|
||||
|
||||
@@ -149,6 +149,8 @@ weechat_lua_register (lua_State *L)
|
||||
|
||||
/* make gcc happy */
|
||||
(void) L;
|
||||
|
||||
lua_current_script = NULL;
|
||||
|
||||
name = NULL;
|
||||
version = NULL;
|
||||
|
||||
@@ -247,6 +247,8 @@ static XS (XS_weechat_register)
|
||||
/* make gcc happy */
|
||||
(void) items;
|
||||
(void) cv;
|
||||
|
||||
perl_current_script = NULL;
|
||||
|
||||
if (items != 4)
|
||||
{
|
||||
|
||||
@@ -172,6 +172,8 @@ weechat_python_register (PyObject *self, PyObject *args)
|
||||
|
||||
/* make gcc happy */
|
||||
(void) self;
|
||||
|
||||
python_current_script = NULL;
|
||||
|
||||
name = NULL;
|
||||
version = NULL;
|
||||
|
||||
@@ -224,6 +224,8 @@ weechat_ruby_register (VALUE class, VALUE name, VALUE version,
|
||||
|
||||
/* make gcc happy */
|
||||
(void) class;
|
||||
|
||||
ruby_current_script = NULL;
|
||||
|
||||
if (NIL_P (name) || NIL_P (version) || NIL_P (shutdown_func) || NIL_P (description))
|
||||
{
|
||||
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2006-05-25
|
||||
ChangeLog - 2006-05-30
|
||||
|
||||
Version 0.2.0 (under dev!):
|
||||
* fixed crash with "register" function in plugin scripts (bug #16701)
|
||||
* fixed random crash at exit (/quit or /upgrade) with splited windows
|
||||
|
||||
Version 0.1.9 (2006-05-25):
|
||||
|
||||
@@ -149,6 +149,8 @@ weechat_lua_register (lua_State *L)
|
||||
|
||||
/* make gcc happy */
|
||||
(void) L;
|
||||
|
||||
lua_current_script = NULL;
|
||||
|
||||
name = NULL;
|
||||
version = NULL;
|
||||
|
||||
@@ -247,6 +247,8 @@ static XS (XS_weechat_register)
|
||||
/* make gcc happy */
|
||||
(void) items;
|
||||
(void) cv;
|
||||
|
||||
perl_current_script = NULL;
|
||||
|
||||
if (items != 4)
|
||||
{
|
||||
|
||||
@@ -172,6 +172,8 @@ weechat_python_register (PyObject *self, PyObject *args)
|
||||
|
||||
/* make gcc happy */
|
||||
(void) self;
|
||||
|
||||
python_current_script = NULL;
|
||||
|
||||
name = NULL;
|
||||
version = NULL;
|
||||
|
||||
@@ -224,6 +224,8 @@ weechat_ruby_register (VALUE class, VALUE name, VALUE version,
|
||||
|
||||
/* make gcc happy */
|
||||
(void) class;
|
||||
|
||||
ruby_current_script = NULL;
|
||||
|
||||
if (NIL_P (name) || NIL_P (version) || NIL_P (shutdown_func) || NIL_P (description))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user