A man has been charged after police say he accidentally shot himself with an ex-lover's gun in the parking lot of a Walmart.

Greenville police said it happened shortly before 9:00 a.m. this morning at the Walmart on Greenville Boulevard.

Officers say Jeffrey Gibbs had the handgun in his pocket, and while walking to his car he pulled up his pants, the gun hit something in his pocket and it went off. He was hit in the calf by the gunfire and taken to Vidant Medical Center for treatment of non-life threatening injuries.

Police said there was no threat to the public and the Farmville man had gone to the Walmart to meet his ex and return her gun, along with some other property. Gibbs told police he didn't realize the weapon was loaded.

The man was charged by police with discharging a weapon within the city limits.