diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-20 16:04:02 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-20 16:04:02 -0700 |
commit | 06f5f8255193b03d56de7445f1ccbe8c4fa4b358 (patch) | |
tree | 3d8269eb665ac2d135b7a1b4d519d00d4715720b /scripts/show-input-policy.pl | |
parent | 1c6e0951fbd6daeeda848e9f63f97b4f71fabb1a (diff) | |
download | vyatta-op-qos-06f5f8255193b03d56de7445f1ccbe8c4fa4b358.tar.gz vyatta-op-qos-06f5f8255193b03d56de7445f1ccbe8c4fa4b358.zip |
Fix use of unitialized variable if ingress has no filter
Bug 5875
It is possible to have ingress qdisc with no filter, if so don't
cause an error.
Diffstat (limited to 'scripts/show-input-policy.pl')
-rw-r--r-- | scripts/show-input-policy.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/show-input-policy.pl b/scripts/show-input-policy.pl index 2c139e7..0d41078 100644 --- a/scripts/show-input-policy.pl +++ b/scripts/show-input-policy.pl @@ -138,7 +138,7 @@ sub show_brief { foreach my $intf (sort @interfaces) { my $filters = get_filter($intf); - my $policy; + my $policy = "none"; my $receive = 0; my $dropped = 0; my $overlimit = 0; |