ReFix Coverity Scan CID 339948 (Using uninitialized value a. Field a.sin_zero is uninitialized when calling bind.)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user