US retailer Safeway posted a slight rise in third quarter earnings helped by higher gas sales.