mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20: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
|
// end debug
|
||||||
|
|
||||||
if (o->parent) {
|
if (o->parent) {
|
||||||
Thread* previous;
|
Thread* previous = 0;
|
||||||
for (Thread* p = o->parent->child; p;) {
|
for (Thread* p = o->parent->child; p;) {
|
||||||
if (p == o) {
|
if (p == o) {
|
||||||
if (p == o->parent->child) {
|
if (p == o->parent->child) {
|
||||||
|
@ -157,7 +157,7 @@ class MySystem: public System {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void remove(Thread* t) {
|
void remove(Thread* t) {
|
||||||
Thread* previous;
|
Thread* previous = 0;
|
||||||
for (Thread* current = first; current;) {
|
for (Thread* current = first; current;) {
|
||||||
if (t == current) {
|
if (t == current) {
|
||||||
if (current == first) {
|
if (current == first) {
|
||||||
|
@ -158,7 +158,7 @@ class MySystem: public System {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void remove(Thread* t) {
|
void remove(Thread* t) {
|
||||||
Thread* previous;
|
Thread* previous = 0;
|
||||||
for (Thread* current = first; current;) {
|
for (Thread* current = first; current;) {
|
||||||
if (t == current) {
|
if (t == current) {
|
||||||
if (current == first) {
|
if (current == first) {
|
||||||
|
Loading…
Reference in New Issue
Block a user