Commit 1e4ca861 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 339948

parent f19c72f7
......@@ -75,6 +75,7 @@ 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