a small bug

an empty file(or its contents are empty to the tokenizer) will make head point to an uninitialized variable.