diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-05-29 22:36:29 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-05-29 22:36:29 +0000 |
commit | fe90f3d4e46b2899c6e21425f3eb4fb4576a156b (patch) | |
tree | 16dc750bb55ecb2837f83a1cfbc69e617c976e62 /src/plugins/scripts | |
parent | 8b0ca6ac41cf21d91a4073b270bd63559db3ed81 (diff) | |
download | weechat-fe90f3d4e46b2899c6e21425f3eb4fb4576a156b.zip |
Fixed crash with "register" function in plugin scripts (bug #16701)
Diffstat (limited to 'src/plugins/scripts')
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/perl/weechat-perl.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/python/weechat-python.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/ruby/weechat-ruby.c | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua.c b/src/plugins/scripts/lua/weechat-lua.c index 56a2a685b..550b32179 100644 --- a/src/plugins/scripts/lua/weechat-lua.c +++ b/src/plugins/scripts/lua/weechat-lua.c @@ -149,6 +149,8 @@ weechat_lua_register (lua_State *L) /* make gcc happy */ (void) L; + + lua_current_script = NULL; name = NULL; version = NULL; diff --git a/src/plugins/scripts/perl/weechat-perl.c b/src/plugins/scripts/perl/weechat-perl.c index 869811368..d8cb85e14 100644 --- a/src/plugins/scripts/perl/weechat-perl.c +++ b/src/plugins/scripts/perl/weechat-perl.c @@ -247,6 +247,8 @@ static XS (XS_weechat_register) /* make gcc happy */ (void) items; (void) cv; + + perl_current_script = NULL; if (items != 4) { diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c index 7f36aac27..36c699778 100644 --- a/src/plugins/scripts/python/weechat-python.c +++ b/src/plugins/scripts/python/weechat-python.c @@ -172,6 +172,8 @@ weechat_python_register (PyObject *self, PyObject *args) /* make gcc happy */ (void) self; + + python_current_script = NULL; name = NULL; version = NULL; diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c index 42e966806..f748b5548 100644 --- a/src/plugins/scripts/ruby/weechat-ruby.c +++ b/src/plugins/scripts/ruby/weechat-ruby.c @@ -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)) { |