Fixed static analysis warning