avoid uninitialized value warnings

This commit is contained in:
Joel Dice 2007-11-27 16:04:15 -07:00
parent 5fa7b074b4
commit 5b6a63cbca
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {