OAKLAND -- A man who reportedly walked into a Safeway carrying a rifle Wednesday afternoon was safely disarmed and cited for carrying the exposed firearm in public, police said.

Just before noon police from Piedmont and Oakland were called to the grocery store at 3747 Grand Ave. after a Safeway employee saw the man with the gun and asked him to leave the business, said Oakland Police Sgt. Don Covington.

No injuries were reported and when police arrived they found the man in a parking lot by his car. Officers confiscated the weapon, which was unloaded, and he was cited with the misdemeanor charge. Police said they also found ammunition in the man's car.

The man, who has not been identified, told officers "he was unaware of the law."

Under state law, it's illegal to carry an unloaded and exposed firearm in public with the exception of a handgun. But it is legal for a person to transport an unloaded one in a vehicle.

Contact Natalie Neysa Alund at 510-293-2469. Follow her at Twitter.com/nataliealund.