Removing the *ptr variable