bzero changed to memset
This commit is contained in:
parent
e8c65d39ba
commit
547413eec3
@ -1059,7 +1059,8 @@ conn_t *connection_link(conn_sys_t *ssys, const char *host,
|
||||
|
||||
/* create a socket */
|
||||
sck = socket(PF_INET, SOCK_STREAM, 0);
|
||||
bzero(&addr, sizeof(addr));
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
// bzero(&addr, sizeof(addr));
|
||||
|
||||
/* try to connect it */
|
||||
addr.sin_family = AF_INET;
|
||||
|
Loading…
x
Reference in New Issue
Block a user