I know that this problem has already been solved a couple of times but I was here because while going through the exercises I had written a slightly different proof and since I have no one to check it, I wanted to ask the community.
My proof goes like this:
If, by contradiction, the zero ideal is decomposable then by proposition 4.7 of the book, the set of all zero divisors is the union of the prime ideals belonging to the zero ideal.
In particular, the number of prime ideals belonging to the zero ideal is finite and each of them is contained in at least one maximal ideal, therefore all the zero divisors are contained in a finite union of maximal ideals. Since all maximal ideals are of the form seen in exercise 1.26, we have that all of the zero divisors must be zero on at least one of the points $P=\{x_{1},...,x_{n}\}$ corresponding to these maximal ideals.
Since $X$ is an infinite topological space, we can choose a point $a\in X$ such that $a\notin P$. By the fact that $X$ is Hausdorff we can find a closed neighbourhood $V$ of $a$ which does not intersect the set $P$. Hence By Urysohn lemma we have a continuous function $f$ such that $f(V)=\{0\}$ and $f(P)=\{1\}$. Therefore $f$ is a zero divisor which is never zero on $P$, a contradiction.
As I said above, this proof is only slightly different to the other ones but I would like to be sure of its correctness and I have no other way but to ask you kindly.
Edit. Since I have been asked to cite the exercises and proposition I refer to, here is the list:
Exercise 4.6: Let $X$ be an infinite compact Hausdorff space and let $C(X)$ be the ring of real-valued continuous functions on $X$. Does $(0)$ have a primary decomposition in this ring? We want to prove the answer is no.
Proposition 4.7: [...]In particular, if the zero ideal is decomposable, the set $D$ of zero-divisors of $A$ is the union of the prime ideals belonging to $0$. This is the only part of the proposition I use.
Exercise 1.26: Of this exercise we only use the fact that all the maximal ideals of the above mentioned $C(X)$ are of the form $M_{x}=\{f\in C(X)| f(x)=0\}$ where $x$ is a point of $X$.