Initialize local var only once.

Change-Id: Ibe63975f124033933ba594a226423e558eef5b5f