From 0a3de87e0f68078652ca3293c1bd1cc377c27f9d Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 20 Nov 2018 12:45:15 +0100 Subject: [PATCH] Tools.pm: do not ignore "0" in split_list giving split_list the string "0" would actually return an empty list instead of a list with the element "0" Signed-off-by: Dominik Csapak --- src/PVE/Tools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 0f31fdb..accf653 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@ -640,7 +640,7 @@ sub pipe_socket_to_command { } sub split_list { - my $listtxt = shift || ''; + my $listtxt = shift // ''; return split (/\0/, $listtxt) if $listtxt =~ m/\0/; -- 2.39.2