Bug 777792 - Initialize the type variable in ParamTraits<nsMouseEvent>::Read; r=cjones

This is mostly to silence compiler warnings. The uninitialized type itself
won't cause problems because failed Read() prevents dispatch.
This commit is contained in:
Ehsan Akhgari 2012-07-26 15:16:23 -04:00
parent 6fe61390b9
commit b022b39f21

View File

@ -136,7 +136,7 @@ struct ParamTraits<nsMouseEvent>
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
{
bool rv;
PRUint8 reason, context, exit;
PRUint8 reason = 0, context = 0, exit = 0;
rv = ReadParam(aMsg, aIter, static_cast<nsMouseEvent_base*>(aResult)) &&
ReadParam(aMsg, aIter, &aResult->ignoreRootScrollFrame) &&
ReadParam(aMsg, aIter, &reason) &&