A prosecutor in New Jersey has dropped a gun charge against a Pennsylvania corrections officer who was accused after a car accident of carrying his weapon without a state permit.

A spokesman for Gloucester County prosecutors said Monday that the charge was inappropriate because Raymond Hughes was the victim of a drunken driving accident when police in Glassboro learned he had the gun in his car.

Hughes had a permit to carry in Pennsylvania, but the permit wasn't recognized by New Jersey's strict gun laws. Hughes faced a minimum of 3 ½ years in prison if he was found guilty of the felony.

The case also could have cost him his job. He's been a sergeant at a state prison in Chester, Pennsylvania, for more than 13 years.