I have just started studying about quantum mechanics, and I was studying the definition of the inner product for functions; I am also quite new to linear algebra. While studying I think I encountered a contradiction on the definition of the inner products between functions, and I can't resolve it. I am following the textbook "Mathematics for Physics by Frederick Byron". The book defines inner products as: (the function space is defined over the interval $[a, b]$ where $a,b \in \mathbb{R}$)
$$ \langle f, g \rangle = \int_{a}^{b} f^*(x) g(x) dx $$
And of course the book proves the fact that the function space (the set of square integrable functions over some interval $[a, b]$) is in fact a vector space.
As far as I know, as a consequence of the definition of vector spaces, the zero vector (or the zero function) has to be unique. As well, based on the definition of inner products the following condition should always be met:
$$ \langle f,f \rangle = 0 \iff f=0 $$
However, in the textbook the authors note that $f$ could be a function which is non-zero at a set of points with a Lebesgue measure of 0, and $\langle f,f\rangle$ would still be $0$.
If the definition of the $0$ function is changed from a function which is $0$ for all $x \in [a, b]$, to a function that is only non-zero at a set with a zero Lebesgue measure, then this issue will be resolved and the definition of inner products will be valid.
But this also implies that the zero function is no longer unique, contradicting the fact that the function space is a vector space.
What is my mistake? How can we satisfy both of these conditions (unique zero vector and the inner product property that only the zero function has a norm of 0) without arriving at a contradiction?
I appreciate your help. I understand this question might be more of a mathematics question than a physics question, but considering the problem is relevant to the basis of quantum mechanics I think Physics Stack Exchange is the more appropriate place for this question to be asked.