]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
In police, fix uninitialized "overhead" variable.
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 17 Apr 2008 16:12:38 +0000 (09:12 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 17 Apr 2008 16:12:38 +0000 (09:12 -0700)
Bug introduced by myself in an earlier patch series.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
tc/m_police.c

index 8fa63ad675a2d906583b587ff6d9b8a900463860..e55a8c9c1e57522c2969bf2a1900aab24f691a9f 100644 (file)
@@ -133,7 +133,7 @@ int act_parse_police(struct action_util *a,int *argc_p, char ***argv_p, int tca_
        __u32 avrate = 0;
        int presult = 0;
        unsigned buffer=0, mtu=0, mpu=0;
-       unsigned short overhead;
+       unsigned short overhead=0;
        int Rcell_log=-1, Pcell_log = -1;
        struct rtattr *tail;