summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@uffda.(none)>2007-10-22 17:42:55 -0700
committerStig Thormodsrud <stig@uffda.(none)>2007-10-22 17:42:55 -0700
commitcb287eb4589e46b72001d8e84de1eb5bae26d543 (patch)
tree46d1bbad7b4ddfbbcfa6bc77b0fb7ece06de1376 /scripts
parentd34592273240b6ea91b82c479362bd88352b7f65 (diff)
downloadvyatta-cfg-system-cb287eb4589e46b72001d8e84de1eb5bae26d543.tar.gz
vyatta-cfg-system-cb287eb4589e46b72001d8e84de1eb5bae26d543.zip
Fix uninitialized value when no trap-target has been configured.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-snmp.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/vyatta-snmp.pl b/scripts/vyatta-snmp.pl
index 59c7524b..511e1054 100644
--- a/scripts/vyatta-snmp.pl
+++ b/scripts/vyatta-snmp.pl
@@ -95,8 +95,7 @@ sub snmp_get_values {
$output .= "syslocation \"$location\" \n";
}
- my $multivalues = $config->returnValue("trap-target");
- my @trap_targets = split("\n", $multivalues);
+ my @trap_targets = $config->returnValues("trap-target");
foreach my $trap_target (@trap_targets) {
$output .= "trapsink $trap_target\n";
}