The princess had him hide, and told the giant that he did not smell a man when he stirred from his sleep.
The princess hid the prince, and the giant was deceived into believing that the prince did not smell like a man after waking.