A vehicle caught fire at the Country Mile gas station in Greenville on Saturday night.

Around 10:15 p.m., the Greenville Fire Department responded to the scene, where the fire was first discovered by the vehicle’s driver while they were stopped at the diesel pumps, according to a press release. The driver moved it away from the pumps before the fire spread.

A passing police officer with the Temple-Greenville Police Department also witnessed the fire and used an on-site fire extinguisher to tame most of it.

When Greenville firefighters arrived, they accessed the engine and fully put out what was left of the fire, as well as hot spots.

“This incident is a great example of how quick thinking and decisive action can make a significant difference,” the Greenville Fire Department said in the press release. “The driver’s actions in moving the vehicle away from the fuel pumps, combined with the quick response by the TGPD officer, helped prevent what could have been a much more serious situation.”