From 8c3b64c74df047bf8c72f9c8d86c29b513528454 Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Thu, 2 Nov 2023 20:00:09 -0700 Subject: [PATCH] bug fix, undefined value possible --- inxi | 1 + 1 file changed, 1 insertion(+) diff --git a/inxi b/inxi index ad912b7..fe336d9 100755 --- a/inxi +++ b/inxi @@ -26492,6 +26492,7 @@ sub load_sys_data { $adapter .= '-' . $hwmons{$hwmon}->{'device'}; ($unit,$value,@values) = (); foreach my $item (@{$hwmons{$hwmon}->{'sensors'}}){ + next if !defined $item->{'id'}; my $name = ($item->{'label'}) ? $item->{'label'}: $item->{'id'}; if ($item->{'id'} =~ /^temp/){ $unit = 'C';