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 <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-11-20 12:45:15 +01:00 committed by Wolfgang Bumiller
parent a609b2f787
commit 0a3de87e0f

View File

@ -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/;