Mistaken post. Sorry.
Suppose that . That is the set of discontinuities.
is countable so the function is Riemann integrable.
Here is an outline of a proof. In any partition of the subinterval that contains 0 contains almost all points of . The points outside of that can be covered by intervals the sum of their is as small as needed. Thus showing the integral is zero.