From 7ce35b212f9d68905f70d2df18c054410a6a747c Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 18 Dec 2008 10:10:19 -0700 Subject: [PATCH] fix GCC 4.0.1 uninitialized value warning --- src/bootimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootimage.cpp b/src/bootimage.cpp index 7f7d12fc8f..9291acdfd0 100644 --- a/src/bootimage.cpp +++ b/src/bootimage.cpp @@ -47,7 +47,7 @@ makeCodeImage(Thread* t, Zone* zone, BootImage* image, uint8_t* code, DelayedPromise* addresses = 0; for (Finder::Iterator it(t->m->finder); it.hasMore();) { - unsigned nameSize; + unsigned nameSize = 0; const char* name = it.next(&nameSize); if (endsWith(".class", name, nameSize)) {