Code

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 2946ab3abb39e1ddcf22d597c7d426854e9d4c9d..400057b77c0b42b9dc8503336a5d233a9b003c03 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;