Make sure the local variable 'stride' is initialized