mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +00:00
Handle the case where DMI data isn't available.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5522 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -2207,6 +2207,7 @@ sub dmi_match
|
||||
my $key = shift;
|
||||
my $value;
|
||||
|
||||
return unless defined $dmi{$key};
|
||||
while (defined ($value = shift)) {
|
||||
return 1 if $dmi{$key} =~ m/\b$value\b/i;
|
||||
}
|
||||
|
Reference in New Issue
Block a user