Log Message: Move variable declaration to top of function. Fixes compile error noted on recent 1.6.2/i386 bulk build by kristerw.