fix uninitialized value warnings in bootimage.cpp

This commit is contained in:
Joel Dice 2011-10-03 08:05:25 -06:00
parent 248ff26581
commit 5c39819cf0

View File

@ -1316,9 +1316,9 @@ writeBootImage2(Thread* t, FILE* bootimageOutput, FILE* codeOutput,
unsigned buildOffset = BytesPerWord;
unsigned targetOffset = TargetBytesPerWord;
bool sawArray = false;
Type type;
unsigned buildSize;
unsigned targetSize;
Type type = Type_none;
unsigned buildSize = 0;
unsigned targetSize = 0;
for (unsigned j = 1; j < count; ++j) {
switch (source[j - 1]) {
case Type_object: