summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES1
-rwxr-xr-xprog/detect/sensors-detect5
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index a6d7ed84..d58edf9e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -14,6 +14,7 @@ SVN HEAD
Introduce automatic mode (--auto)
Detect incorrect non-interactive runs
Rework option handling
+ Fix use of uninitialized value 'vendor_id' on ppc64
3.3.4 (2013-05-27)
sensors.conf.5: Mention "sensors -u" to get the raw feature names
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
index a0f763b2..f12f9837 100755
--- a/prog/detect/sensors-detect
+++ b/prog/detect/sensors-detect
@@ -2694,7 +2694,10 @@ sub initialize_cpu_list
while (<INPUTFILE>) {
if (m/^processor\s*:\s*(\d+)/) {
push @cpu, $entry if scalar keys(%{$entry}); # Previous entry
- $entry = { nr => $1 }; # New entry
+ $entry = { # New entry
+ nr => $1,
+ vendor_id => "undefined",
+ };
next;
}
if (m/^(vendor_id|cpu family|model|model name|stepping|cpuid level)\s*:\s*(.+)$/) {