Statement: If $g$ is any $\Bbb{C}$-valued measurable function on a measure space $(X, \mu)$ such that $$ \int fg d\mu = 0 $$ for all $f\in L^1(\mu)$ then $g=0$ almost everywhere.
Proof. If $\mu$ is $\sigma$-finite then the statement follows from my earlier post; since the condition on $g$ implies that $$ \int_E g d\mu = \int \chi_E g d\mu = 0 $$ for all $\mu(E)<\infty$.
But I'm not sure how to (dis)prove the last "statement" for non-$\sigma$-finite $\mu$. Any help is appreciated. Thanks.