From 5c3509945ff7aeef205219a2b6f4f3a6c5ea38b8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 28 Jan 2020 16:08:33 +0100 Subject: [PATCH] LXDebug::clone_for_dump: Warnung wegen Hash-Zugriff mit Key undef vermeiden --- SL/LXDebug.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index 6b27b0a77..0503dcb6c 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -161,6 +161,7 @@ sub clone_for_dump { my ($src, $dumped) = @_; return undef if !defined($src); + return $src if !ref($src); $dumped ||= {}; my $addr = refaddr($src); -- 2.20.1