3.5mm Audio Splitter Question



I want to connect headphones to my PC and PS3. Is it safe to use that cable to achieve this? Is it alright for the headphones? It won't short out or anything?