#378 fix several uninitialized vars

This commit is contained in:
Oliver Gorwits
2021-10-07 10:19:28 +01:00
parent d535cea7db
commit a0cd7c57e2
3 changed files with 5 additions and 5 deletions

View File

@@ -105,8 +105,8 @@ sub model {
sub vendor {
my $l2 = shift;
my $model = $l2->model();
my $descr = $l2->description();
my $model = $l2->model() || '';
my $descr = $l2->description() || '';
if ( $model =~ /hp/i or $descr =~ /\bhp\b/i ) {
return 'hp';