Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce11393

Browse files
committed
Remove some unused variables from gethostbyaddr_ex and gethostbyaddr,
discovered by Marc Lemburg.
1 parent 065ce5a commit ce11393

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Modules/socketmodule.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,6 @@ BUILD_FUNC_DEF_2(PySocket_gethostbyname_ex,PyObject *,self, PyObject *,args)
14021402
char *name;
14031403
struct hostent *h;
14041404
struct sockaddr_in addr;
1405-
PyObject *addr_list = (PyObject *)NULL;
14061405
#ifdef HAVE_GETHOSTBYNAME_R
14071406
struct hostent hp_allocated;
14081407
char buf[16384];
@@ -1445,9 +1444,6 @@ BUILD_FUNC_DEF_2(PySocket_gethostbyaddr,PyObject *,self, PyObject *, args)
14451444
struct sockaddr_in addr;
14461445
char *ip_num;
14471446
struct hostent *h;
1448-
PyObject *rtn_tuple = (PyObject *)NULL;
1449-
PyObject *name_list = (PyObject *)NULL;
1450-
PyObject *addr_list = (PyObject *)NULL;
14511447
#ifdef HAVE_GETHOSTBYNAME_R
14521448
struct hostent hp_allocated;
14531449
char buf[16384];

0 commit comments

Comments
 (0)