ss: unix_show: No need to initialize members of calloc'ed structs
Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
b710a72254
commit
039b3620cf
|
|
@ -3109,8 +3109,6 @@ static int unix_show(struct filter *f)
|
||||||
|
|
||||||
if (!(u = calloc(1, sizeof(*u))))
|
if (!(u = calloc(1, sizeof(*u))))
|
||||||
break;
|
break;
|
||||||
u->name = NULL;
|
|
||||||
u->peer_name = NULL;
|
|
||||||
|
|
||||||
if (sscanf(buf, "%x: %x %x %x %x %x %d %s",
|
if (sscanf(buf, "%x: %x %x %x %x %x %d %s",
|
||||||
&u->rport, &u->rq, &u->wq, &flags, &u->type,
|
&u->rport, &u->rq, &u->wq, &flags, &u->type,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue