summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2022-06-08 14:38:19 +0100
committerPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2022-06-08 14:38:19 +0100
commit37a94617085a82b7af352df83dfd5eb4788aa27b (patch)
tree0929189b4b5b0c3dac71710dbb24c8a47baa308a /op.c
parenta5f200dfe4cd59bf70555c0d8e6f37fffd08e7e7 (diff)
downloadperl-37a94617085a82b7af352df83dfd5eb4788aa27b.tar.gz
Appease gcc's warning that keysv may be used uninitialized in op.c
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 97101e0d66..c9111b0633 100644
--- a/op.c
+++ b/op.c
@@ -1852,7 +1852,7 @@ C<is_slice> selects between two different messages used in different places.
static void
S_warn_elem_scalar_context(pTHX_ const OP *o, SV *name, bool is_hash, bool is_slice)
{
- SV *keysv;
+ SV *keysv = NULL;
const char *keypv = NULL;
const char lbrack = is_hash ? '{' : '[';