Initialize msg variable to avoid compiler warning