bzero changed to memset

v0.5.xx
Eugen Tarasov 9 years ago
parent e8c65d39ba
commit 547413eec3

@ -1059,7 +1059,8 @@ conn_t *connection_link(conn_sys_t *ssys, const char *host,
/* create a socket */ /* create a socket */
sck = socket(PF_INET, SOCK_STREAM, 0); sck = socket(PF_INET, SOCK_STREAM, 0);
bzero(&addr, sizeof(addr)); memset(&addr, 0, sizeof(addr));
// bzero(&addr, sizeof(addr));
/* try to connect it */ /* try to connect it */
addr.sin_family = AF_INET; addr.sin_family = AF_INET;

Loading…
Cancel
Save