I'm not sure what I need the identity theorem for. If I have $f: \Omega \to \mathbb{R}$ analytic and for $B \subset \Omega \subset \mathbb{R}$ bounded, $f\mid_B = 0$ then I can have two cases:
If $B$ is open then I get a contradiction since $f(B) = \{0\}$ is closed.
If $B$ is closed then I take an open subset $O$ and do the same for $O$.