From 5b5534a9d726972fad0186d1bdc1519cd90b5f2e Mon Sep 17 00:00:00 2001 From: David Limbeck Date: Thu, 3 Jan 2019 09:44:59 +0100 Subject: [PATCH] fix use of uninitialized value in parse_ceph_config Signed-off-by: David Limbeck --- PVE/CephConfig.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/CephConfig.pm b/PVE/CephConfig.pm index 5b2d19e..b420fcc 100644 --- a/PVE/CephConfig.pm +++ b/PVE/CephConfig.pm @@ -14,6 +14,7 @@ sub parse_ceph_config { my ($filename, $raw) = @_; my $cfg = {}; + return $cfg if !defined($raw); my @lines = split /\n/, $raw; -- 2.39.2