summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Support/Timer.cpp2
-rw-r--r--support/lib/Support/Timer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp
index 8023c500e5..3a81fc4b53 100644
--- a/lib/Support/Timer.cpp
+++ b/lib/Support/Timer.cpp
@@ -89,7 +89,7 @@ struct TimeRecord {
static TimeRecord getTimeRecord(bool Start) {
struct rusage RU;
struct timeval T;
- long MemUsed;
+ long MemUsed = 0;
if (Start) {
MemUsed = getMemUsage();
if (getrusage(RUSAGE_SELF, &RU))
diff --git a/support/lib/Support/Timer.cpp b/support/lib/Support/Timer.cpp
index 8023c500e5..3a81fc4b53 100644
--- a/support/lib/Support/Timer.cpp
+++ b/support/lib/Support/Timer.cpp
@@ -89,7 +89,7 @@ struct TimeRecord {
static TimeRecord getTimeRecord(bool Start) {
struct rusage RU;
struct timeval T;
- long MemUsed;
+ long MemUsed = 0;
if (Start) {
MemUsed = getMemUsage();
if (getrusage(RUSAGE_SELF, &RU))