[pve-devel] [PATCH common v2 2/3] add PVE/HardwareMap

DERUMIER, Alexandre Alexandre.DERUMIER at groupe-cyllene.com
Thu Aug 25 15:37:02 CEST 2022


I'm currently testing your patches,

I have an uninitialized value warning with no hardware map file

Le 25/08/22 à 11:24, Dominik Csapak a écrit :

> +sub read_hardware_map {
> +    my ($filename, $raw)  = @_;
> +
> +    my $digest = Digest::SHA::sha1_hex($raw);
> +


Use of uninitialized value in subroutine entry at 
/usr/share/perl5/PVE/HardwareMap.pm line 191.


> +    if (!defined($raw) || $raw eq '') {
> +	return {
> +	    digest => $digest,
> +	};
> +    }
> +
> +    my $cfg = from_json($raw);
> +    check_config($cfg);
> +    $cfg->{digest} = $digest;
> +
> +    return $cfg;
> +}



More information about the pve-devel mailing list