]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/Auth/PVE.pm
Fix uninitialized warning
[pve-access-control.git] / PVE / Auth / PVE.pm
index 71479979eea163f47787f9d2e96fe0d869121f55..8714a6b6a5131a47ab65942c9402d9025736f20f 100755 (executable)
@@ -19,6 +19,8 @@ sub parse_shadow_passwd {
 
     my $shadow = {};
 
+    return $shadow if !defined($raw);
+
     while ($raw =~ /^\s*(.+?)\s*$/gm) {
        my $line = $1;