A man was fortunate to escape serious injury overnight after police said he accidentally shot himself in the head.

The shooting happened just before 12:45 a.m. in the 600 block of Sterling Street.

San Antonio police say the 27-year-old man didn't know the gun was loaded when he showed it off to his girlfriend.

He first pointed the gun at the woman, investigators said, then at his own head and pulled the trigger.

That's when the gun discharged.

The man was taken to San Antonio Military Medical Center with minor injuries.