summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-20 16:04:02 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-20 16:04:02 -0700
commit06f5f8255193b03d56de7445f1ccbe8c4fa4b358 (patch)
tree3d8269eb665ac2d135b7a1b4d519d00d4715720b /scripts
parent1c6e0951fbd6daeeda848e9f63f97b4f71fabb1a (diff)
downloadvyatta-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')
-rw-r--r--scripts/show-input-policy.pl2
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;