Initialize variable

CID1257729
Re-order assignments to avoid memory leak

CID1230537