From 5b6a63cbca961511ca3caa8c37695258af8b132d Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 27 Nov 2007 16:04:15 -0700 Subject: [PATCH] avoid uninitialized value warnings --- src/machine.cpp | 2 +- src/posix.cpp | 2 +- src/windows.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/machine.cpp b/src/machine.cpp index 48c5ca6cb7..510745ffdd 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -75,7 +75,7 @@ dispose(Thread* t, Thread* o, bool remove) // end debug if (o->parent) { - Thread* previous; + Thread* previous = 0; for (Thread* p = o->parent->child; p;) { if (p == o) { if (p == o->parent->child) { diff --git a/src/posix.cpp b/src/posix.cpp index 1f6a102b34..62d03c83a7 100644 --- a/src/posix.cpp +++ b/src/posix.cpp @@ -157,7 +157,7 @@ class MySystem: public System { } void remove(Thread* t) { - Thread* previous; + Thread* previous = 0; for (Thread* current = first; current;) { if (t == current) { if (current == first) { diff --git a/src/windows.cpp b/src/windows.cpp index f5033417eb..c06cf27f7d 100644 --- a/src/windows.cpp +++ b/src/windows.cpp @@ -158,7 +158,7 @@ class MySystem: public System { } void remove(Thread* t) { - Thread* previous; + Thread* previous = 0; for (Thread* current = first; current;) { if (t == current) { if (current == first) {