2
0
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:
Jean Delvare
2008-12-05 09:44:17 +00:00
parent c63401998c
commit 2ed59ceadc

View File

@@ -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;
}