From: Ulrich Habel Date: Wed, 29 Oct 2008 06:01:12 +0000 (+0100) Subject: perl plugin: Fix an uninitialized variable warning. X-Git-Tag: collectd-4.5.2~18 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=671b79940f4a187ffed28a720dc782208240f0b4;p=collectd.git perl plugin: Fix an uninitialized variable warning. Resolves: #33 --- diff --git a/src/perl.c b/src/perl.c index 2946ab3a..400057b7 100644 --- a/src/perl.c +++ b/src/perl.c @@ -1790,7 +1790,7 @@ static int perl_config (oconfig_item_t *ci) for (i = 0; i < ci->children_num; ++i) { oconfig_item_t *c = ci->children + i; - int current_status; + int current_status = 0; if (NULL != perl_threads) aTHX = PERL_GET_CONTEXT;