I agree with that - however the code is then broken, as it accesses root->next and root->x before checking that the pointer is non-null. Bad coding.

Edit: thinking about it, it probably makes...