If $\alpha: [a,b] \rightarrow \mathbb{R}$ is an increasing function, we can define the Riemann-Stieltjes integral $$\int_a^b f d \alpha$$ Does the function $\langle f,g\rangle = \int_a^b fg d\alpha$ define an inner product on the $\mathbb{R}$-space of all Riemann-Stieltjes integrable functions on $[a,b]$ (with respect to $\alpha$)? It seems to me that the condition $\langle f,f\rangle = 0$ implies $f= 0$ is false. For example if we take the Riemann integral and take $f(x)$ to be $0$ everywhere except $1$ at $(b-a)/2$, then $\langle f,f\rangle = \int_a^b f(x)^2dx = 0$, but $f \neq 0$.
If it is not an inner product, can we still get something like the Cauchy-Schwarz inequality, i.e. $$\Biggl[\int_a^b |fg| d \alpha\Biggr]^2 \leq \Biggl(\int_a^b |f|^2 d \alpha\Biggr) \Biggl(\int_a^b |g|^2 d \alpha\Biggr)\,?$$
I know this has been answered in the comments but you might be interested in reading up about exactly how this is done over here. Note that in that article they talk about functions being equal almost everywhere which in the view of Riemann-Stieltjes Integral is exactly the type of issue you brought up: the functions are nearly identical (in fact they are identical almost everywhere).
Also I'll a quick overview of the process outlined by that article: