I think it is better to explicitly write `s1 == NULL && s2 == NULL` here, to make the code a bit more clear.