From: Marco van Wieringen Date: Sun, 29 Jan 2012 16:52:06 +0000 (+0100) Subject: Tweak no need to initialize the loop var. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12da7dbaecffa5e9226f33b06e92435fb4ffd9fd;p=bacula%2Fbacula Tweak no need to initialize the loop var. --- diff --git a/bacula/src/dird/dir_plugins.c b/bacula/src/dird/dir_plugins.c index 73b14d3a38..b0b29ab7d6 100644 --- a/bacula/src/dird/dir_plugins.c +++ b/bacula/src/dird/dir_plugins.c @@ -101,7 +101,7 @@ int generate_plugin_event(JCR *jcr, bDirEventType eventType, void *value) bpContext *plugin_ctx; bDirEvent event; Plugin *plugin; - int i = 0; + int i; bRC rc = bRC_OK; if (!bplugin_list || !jcr || !jcr->plugin_ctx_list) { @@ -238,7 +238,7 @@ static bool is_plugin_compatible(Plugin *plugin) void new_plugins(JCR *jcr) { Plugin *plugin; - int i = 0; + int i; Dmsg0(dbglvl, "=== enter new_plugins ===\n"); if (!bplugin_list) { @@ -279,7 +279,7 @@ void new_plugins(JCR *jcr) void free_plugins(JCR *jcr) { Plugin *plugin; - int i = 0; + int i; if (!bplugin_list || !jcr->plugin_ctx_list) { return; diff --git a/bacula/src/stored/sd_plugins.c b/bacula/src/stored/sd_plugins.c index 2ed955c857..8ea73af96e 100644 --- a/bacula/src/stored/sd_plugins.c +++ b/bacula/src/stored/sd_plugins.c @@ -104,7 +104,7 @@ int generate_plugin_event(JCR *jcr, bsdEventType eventType, void *value) bpContext *plugin_ctx; bsdEvent event; Plugin *plugin; - int i = 0; + int i; bRC rc = bRC_OK; if (!bplugin_list) { @@ -251,7 +251,7 @@ static bool is_plugin_compatible(Plugin *plugin) void new_plugins(JCR *jcr) { Plugin *plugin; - int i = 0; + int i; Dmsg0(dbglvl, "=== enter new_plugins ===\n"); if (!bplugin_list) { @@ -298,7 +298,7 @@ void new_plugins(JCR *jcr) void free_plugins(JCR *jcr) { Plugin *plugin; - int i = 0; + int i; if (!bplugin_list || !jcr->plugin_ctx_list) { return;