cc can be NULL here but you dereference it later?