From 5c39819cf0410dd555052f9fbc020843840f9a29 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 3 Oct 2011 08:05:25 -0600 Subject: [PATCH] fix uninitialized value warnings in bootimage.cpp --- src/bootimage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bootimage.cpp b/src/bootimage.cpp index 605000d339..28f45dd382 100644 --- a/src/bootimage.cpp +++ b/src/bootimage.cpp @@ -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: