summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-08-15 11:39:11 +0100
committerDavid Mitchell <davem@iabyn.com>2016-08-15 11:39:11 +0100
commit6b57d4bc7c6decb1bad066cc7ad2c1c63d6eb1d8 (patch)
tree1edc41769d1fa89ed6c3233da9327e5431302a18 /sv.c
parent7f8ad91f301ccedbd53eca8c8ae77acee7cb3700 (diff)
downloadperl-6b57d4bc7c6decb1bad066cc7ad2c1c63d6eb1d8.tar.gz
"" . open(my $fh,...) gave wrong warning
RT #128940 $ perl -we 'print "" . open my $fh, "<", "no / such / file"' Use of uninitialized value $fh in concatenation (.) or string at -e line 1. ^^^
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index b34505273f..8991c12b57 100644
--- a/sv.c
+++ b/sv.c
@@ -16243,6 +16243,7 @@ S_find_uninit_var(pTHX_ const OP *const obase, const SV *const uninit_sv,
*/
break;
}
+ match = 1;
goto do_op;
/* ops where $_ may be an implicit arg */