Remove extra allocation of XML Decoder

XML Decoder is allocated in startStream so
it overwrites the one allocated in init()
This commit is contained in:
Eugene Agafonov 2015-12-23 23:09:02 +00:00
parent 9aeb3722bf
commit 9df9a5b5f9

View File

@ -276,12 +276,6 @@ func cnonce() string {
}
func (c *Client) init(o *Options) error {
if o.Debug {
// For debugging: the following causes the plaintext of the connection to be duplicated to stderr.
c.p = xml.NewDecoder(tee{c.conn, os.Stderr})
} else {
c.p = xml.NewDecoder(c.conn)
}
var domain string
var user string