[pve-devel] [PATCH storage] fix use of uninitialized value in parse_ceph_config

David Limbeck d.limbeck at proxmox.com
Wed Jan 2 12:17:35 CET 2019


Signed-off-by: David Limbeck <d.limbeck at proxmox.com>
---
 PVE/CephConfig.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/CephConfig.pm b/PVE/CephConfig.pm
index 5b2d19e..3f06242 100644
--- a/PVE/CephConfig.pm
+++ b/PVE/CephConfig.pm
@@ -15,6 +15,7 @@ sub parse_ceph_config {
 
     my $cfg = {};
 
+    $raw = '' if !defined($raw);
     my @lines = split /\n/, $raw;
 
     my $section;
-- 
2.11.0





More information about the pve-devel mailing list