mirror of
https://github.com/corda/corda.git
synced 2025-01-03 19:54:13 +00:00
avoid uninitialized value warnings
This commit is contained in:
parent
5fa7b074b4
commit
5b6a63cbca
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user