Commit 616ab187 authored by DONG Anyuan's avatar DONG Anyuan

ReFix Coverity Scan CID 339948 (Using uninitialized value a. Field a.sin_zero...

ReFix Coverity Scan CID 339948 (Using uninitialized value a. Field a.sin_zero is uninitialized when calling bind.)
parent 4acb50f9
......@@ -75,7 +75,6 @@ static int get_connection(char *addr, int port) {
socklen_t alen;
int s, t;
printf("T tracer: waiting for connection on %s:%d\n", addr, port);
memset(&a,0,sizeof(struct sockaddr_in));
s = socket(AF_INET, SOCK_STREAM, 0);
if (s == -1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment