diff options
author | James E Keenan <jkeenan@cpan.org> | 2019-12-02 21:50:17 -0500 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2019-12-04 22:14:10 -0500 |
commit | 16bac4a4283b5dd6e00f4069d7948fb5f003e17a (patch) | |
tree | ee61ff40b5658222229c76bf24daf9e267d83e0f /perlio.c | |
parent | bad3a436bbf865d40aa6336654a02aa90abb3f9b (diff) | |
download | perl-16bac4a4283b5dd6e00f4069d7948fb5f003e17a.tar.gz |
Local variable 'imode' hides a parameter of the same name
LGTM static code analysis of Perl 5 source code issued this
recommendation. Implement fix.
https://lgtm.com/projects/g/Perl/perl5/rev/ae73d7ec2329275a2dba4be24415743f884d9dfd
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1490,7 +1490,7 @@ PerlIO_openn(pTHX_ const char *layers, const char *mode, int fd, int imode, int perm, PerlIO *f, int narg, SV **args) { if (!f && narg == 1 && *args == &PL_sv_undef) { - int imode = PerlIOUnix_oflags(mode); + imode = PerlIOUnix_oflags(mode); if (imode != -1 && (f = PerlIO_tmpfile_flags(imode))) { if (!layers || !*layers) |