From eb0560812bd2f4ddb68353e7dc5427c60397463d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 14 Jan 2018 14:49:55 +0100 Subject: [PATCH] scripts: add missing initialization of plugin pointer to NULL --- src/plugins/javascript/weechat-js.cpp | 2 +- src/plugins/lua/weechat-lua.c | 2 +- src/plugins/php/weechat-php.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/javascript/weechat-js.cpp b/src/plugins/javascript/weechat-js.cpp index eda9b052a..0df3248cd 100644 --- a/src/plugins/javascript/weechat-js.cpp +++ b/src/plugins/javascript/weechat-js.cpp @@ -41,7 +41,7 @@ WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); WEECHAT_PLUGIN_PRIORITY(4000); -struct t_weechat_plugin *weechat_js_plugin; +struct t_weechat_plugin *weechat_js_plugin = NULL; int js_quiet = 0; diff --git a/src/plugins/lua/weechat-lua.c b/src/plugins/lua/weechat-lua.c index 03563021b..006ad247c 100644 --- a/src/plugins/lua/weechat-lua.c +++ b/src/plugins/lua/weechat-lua.c @@ -42,7 +42,7 @@ WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); WEECHAT_PLUGIN_PRIORITY(4000); -struct t_weechat_plugin *weechat_lua_plugin; +struct t_weechat_plugin *weechat_lua_plugin = NULL; int lua_quiet = 0; diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c index 15ce76401..1db9f8a0d 100644 --- a/src/plugins/php/weechat-php.c +++ b/src/plugins/php/weechat-php.c @@ -37,7 +37,7 @@ WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); WEECHAT_PLUGIN_PRIORITY(4000); -struct t_weechat_plugin *weechat_php_plugin; +struct t_weechat_plugin *weechat_php_plugin = NULL; int php_quiet = 0;