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

misc/ifstat.c

index 19b1ff515ba23b90f313c321eba69599b1de983f..1379a8115b172acbe0ff7bcd86d081f279c83199 100644 (file)
@@ -96,7 +96,6 @@ static int get_nlmsg(const struct sockaddr_nl *who,
        if (!(ifi->ifi_flags&IFF_UP))
                return 0;
 
-       memset(tb, 0, sizeof(tb));
        parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len);
        if (tb[IFLA_IFNAME] == NULL || tb[IFLA_STATS] == NULL)
                return 0;