Don't use strlen() on a NULL pointer.