]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ss: unix_show: No need to initialize members of calloc'ed structs
authorPhil Sutter <phil@nwl.cc>
Fri, 2 Dec 2016 10:40:02 +0000 (11:40 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Dec 2016 22:07:47 +0000 (14:07 -0800)
Signed-off-by: Phil Sutter <phil@nwl.cc>
misc/ss.c

index 71113ca39e17aba7e9cf6611daa1781fef5398bb..d0eadd50438823cb9bf883106cf72813637cfa5a 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -3109,8 +3109,6 @@ static int unix_show(struct filter *f)
 
                if (!(u = calloc(1, sizeof(*u))))
                        break;
-               u->name = NULL;
-               u->peer_name = NULL;
 
                if (sscanf(buf, "%x: %x %x %x %x %x %d %s",
                           &u->rport, &u->rq, &u->wq, &flags, &u->type,