perl plugin: Fix an uninitialized variable warning.
authorUlrich Habel <rhaen@netbsd.org>
Wed, 29 Oct 2008 06:01:12 +0000 (07:01 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 29 Oct 2008 06:01:12 +0000 (07:01 +0100)
Resolves: #33

src/perl.c

index 2946ab3..400057b 100644 (file)
@@ -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;