Clean up cppcheck warnings in src/confuse/lexer.c
Performance improvements found by cppcheck