summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-01-21 17:55:23 -0700
committerKarl Williamson <khw@cpan.org>2018-01-21 18:13:24 -0700
commitb404a7f5880f54fb0673d325408618ab43074309 (patch)
treefa5564f8449f5bb8cff2614599b38cc9085a22ec /doop.c
parent0f3591f94499f7771d7a8e07afb6776a93fc5f9f (diff)
downloadperl-b404a7f5880f54fb0673d325408618ab43074309.tar.gz
PATCH: [perl #132750] Silence uninit warning
I inspected the code, and there is no problem here; it's a compiler mistake. Nevertheless, smply initializing the variable silences it.
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doop.c b/doop.c
index 14b96ed8e0..7cc227faac 100644
--- a/doop.c
+++ b/doop.c
@@ -1018,7 +1018,7 @@ Perl_do_vop(pTHX_ I32 optype, SV *sv, SV *left, SV *right)
STRLEN rightlen;
const char *lc;
const char *rc;
- STRLEN len;
+ STRLEN len = 0;
STRLEN lensave;
const char *lsave;
const char *rsave;