]> git.proxmox.com Git - pve-access-control.git/commitdiff
fix access of possibly undefined variable
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 7 Aug 2015 07:49:53 +0000 (09:49 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 7 Aug 2015 09:58:47 +0000 (11:58 +0200)
PVE/AccessControl.pm

index 955e143586017a63b3acdfa1590f17cafced6624..bfee816f05b59fb48b677148320044c466b4ad7a 100644 (file)
@@ -708,6 +708,7 @@ sub parse_user_config {
 
     userconfig_force_defaults($cfg);
 
 
     userconfig_force_defaults($cfg);
 
+    $raw = '' if !defined($raw);
     while ($raw =~ /^\s*(.+?)\s*$/gm) {
        my $line = $1;
        my @data;
     while ($raw =~ /^\s*(.+?)\s*$/gm) {
        my $line = $1;
        my @data;