goto nextpkt only if there is a nextrecord
do not initialize nextrecord