]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tb buffer initialization is now done in the parser
author11!tgraf <11!tgraf>
Tue, 18 Jan 2005 22:11:58 +0000 (22:11 +0000)
committer11!tgraf <11!tgraf>
Tue, 18 Jan 2005 22:11:58 +0000 (22:11 +0000)
(Logical change 1.129)

misc/ss.c

index 099fc5a01883764d65db454b69dc6ee19617fe4e..037b32b57beaf93dd3deff082094d479de635e1f 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -1305,7 +1305,6 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct tcpdiagmsg *r)
        char b1[64];
        double rtt = 0;
 
-       memset(tb, 0, sizeof(tb));
        parse_rtattr(tb, TCPDIAG_MAX, (struct rtattr*)(r+1),
                     nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)));