]> git.proxmox.com Git - pve-storage.git/commitdiff
fix use of uninitialized value in parse_ceph_config
authorDavid Limbeck <d.limbeck@proxmox.com>
Thu, 3 Jan 2019 08:44:59 +0000 (09:44 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 3 Jan 2019 09:26:57 +0000 (10:26 +0100)
Signed-off-by: David Limbeck <d.limbeck@proxmox.com>
PVE/CephConfig.pm

index 5b2d19e786a99b8bb87cbbfae94da4e444b5f0a2..b420fcc3ca83cb61e4d58cf772595f561f502a57 100644 (file)
@@ -14,6 +14,7 @@ sub parse_ceph_config {
     my ($filename, $raw) = @_;
 
     my $cfg = {};
+    return $cfg if !defined($raw);
 
     my @lines = split /\n/, $raw;