Don't call memcpy if len is zero.