telnet: fix uninitialized variable bug