summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/scripts/lua/weechat-lua.c2
-rw-r--r--src/plugins/scripts/perl/weechat-perl.c2
-rw-r--r--src/plugins/scripts/python/weechat-python.c2
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby.c2
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))
{