This question is motivated by Shafarevich: Basic algebraic geometry in projective space 1, Chapter II, Section 1, Exercise 6.
Let $k$ be an algebraically closed field, and let $X$ be the union of $n$ one-dimensional subspaces $L_1,\dots,L_n\subseteq k^2$. Let $\mathcal{O}_0$ be the local ring of $k$ at $0$. It seems that the local ring $\mathcal{O}_{X, (0,0)}$ of $X$ at $(0,0)$ should be the subring $\mathcal{O}\subseteq \mathcal{O}_0^{\times n}$ consisting of those $(f_1,\dots, f_n)$ for which $f_1(0)=\dots=f_n(0)$. The isomorphism seems to be $f \mapsto (f|_{L_1},\dots,f|_{L_n})$ in one direction and in the other direction you glue together $n$ functions to get a rational function on $X$ regular at $(0,0)$.
... Is this correct? Am I sane?