From 2c850d93a7803e435504fe9c982cb974695d7a3b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 2 Oct 2014 11:21:31 -0500 Subject: Fix potential crash if CPU #0 is not available --- tdecore/tdehw/tdehardwaredevices.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tdecore') diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp index 3ae7479ab..683be0720 100644 --- a/tdecore/tdehw/tdehardwaredevices.cpp +++ b/tdecore/tdehw/tdehardwaredevices.cpp @@ -652,7 +652,7 @@ void TDEHardwareDevices::processModifiedCPUs() { time1 = time2; #endif - TDECPUDevice* firstCPU; + TDECPUDevice* firstCPU = NULL; // Read in other information from cpufreq, if available for (processorNumber=0; processorNumber