Bug 782853 Initialize scrollType to avoid -Wsometimes-unitialized warnings r=smaug

This commit is contained in:
Reuben Morais 2012-08-15 22:32:59 +09:00
Родитель 4dd3a8ce38
Коммит 4879213d80
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -119,7 +119,7 @@ struct ParamTraits<mozilla::widget::WheelEvent>
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
{
PRInt32 scrollType;
PRInt32 scrollType = 0;
bool rv =
ReadParam(aMsg, aIter, static_cast<nsMouseEvent_base*>(aResult)) &&
ReadParam(aMsg, aIter, &aResult->deltaX) &&