You are not allocating the pointer s and so anything can happen which is out of your control.