Skip to content
Snippets Groups Projects
Commit 1e4ca861 authored by DONG Anyuan's avatar DONG Anyuan
Browse files

Fix Coverity Scan CID 339948

parent f19c72f7
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment