From: Jack Jansen Date: Mon, 23 Oct 1995 13:56:33 +0000 (+0000) Subject: Added localport/localhost initialization. This fixes socket.getsockname(). X-Git-Tag: v1.4b1~515 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e1786689d18fbc68a146c4526ed3e16b9c13413;p=thirdparty%2FPython%2Fcpython.git Added localport/localhost initialization. This fixes socket.getsockname(). --- diff --git a/Mac/Unsupported/mactcp/mactcpmodule.c b/Mac/Unsupported/mactcp/mactcpmodule.c index e7dc31753c0a..fc07f1e73e5f 100644 --- a/Mac/Unsupported/mactcp/mactcpmodule.c +++ b/Mac/Unsupported/mactcp/mactcpmodule.c @@ -615,6 +615,8 @@ newtcpsobject(bufsize) return NULL; } INCREF(None); + self->localhost = 0; + self->localport = 0; self->asr = None; self->async_busy = 0; self->async_err = 0;