From: Nick Ing-Simmons Date: Sat, 24 Mar 2001 19:40:34 +0000 (+0000) Subject: Fix un-init variable leading to spurious "Out of Memory!" X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fe9745bfc279b016730696fd0a6abca4d493be60;p=p5sagit%2Fp5-mst-13.2.git Fix un-init variable leading to spurious "Out of Memory!" p4raw-id: //depot/perlio@9332 --- diff --git a/doio.c b/doio.c index d980dea..f6566bb 100644 --- a/doio.c +++ b/doio.c @@ -210,7 +210,7 @@ Perl_do_openn(pTHX_ GV *gv, register char *name, I32 len, int as_raw, *tend-- = '\0'; if (num_svs) { /* New style explict name, type is just mode and discipline/layer info */ - STRLEN l; + STRLEN l = 0; name = SvOK(*svp) ? SvPV(*svp, l) : ""; len = (I32)l; name = savepvn(name, len);