From 616ab1871958c6b92024f53e922aea8783822ee7 Mon Sep 17 00:00:00 2001 From: Dong Anyuan <donganyuan@cn.fujitsu.com> Date: Wed, 29 May 2019 17:36:56 +0900 Subject: [PATCH] ReFix Coverity Scan CID 339948 (Using uninitialized value a. Field a.sin_zero is uninitialized when calling bind.) --- common/utils/T/local_tracer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/utils/T/local_tracer.c b/common/utils/T/local_tracer.c index 253a64ee1e..4be0b35d16 100644 --- a/common/utils/T/local_tracer.c +++ b/common/utils/T/local_tracer.c @@ -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) { -- GitLab