X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fpinsched.c;h=a307a0758dbaf535c47cb954128d894b90d107b9;hb=0fbc9f11c027cce9c89de12525de852e6b2ae332;hp=dc835585b93b3e0186b664c00cb3302d84219701;hpb=531edfbb427fd7f3287d8e6412b115e2cf6dc558;p=openvswitch diff --git a/ofproto/pinsched.c b/ofproto/pinsched.c index dc835585..a307a075 100644 --- a/ofproto/pinsched.c +++ b/ofproto/pinsched.c @@ -123,7 +123,7 @@ static void drop_packet(struct pinsched *ps) { struct pinqueue *longest; /* Queue currently selected as longest. */ - int n_longest; /* # of queues of same length as 'longest'. */ + int n_longest = 0; /* # of queues of same length as 'longest'. */ struct pinqueue *q; ps->n_queue_dropped++;