diff options
author | Stig Thormodsrud <stig@uffda.(none)> | 2007-10-22 17:42:55 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@uffda.(none)> | 2007-10-22 17:42:55 -0700 |
commit | cb287eb4589e46b72001d8e84de1eb5bae26d543 (patch) | |
tree | 46d1bbad7b4ddfbbcfa6bc77b0fb7ece06de1376 /scripts | |
parent | d34592273240b6ea91b82c479362bd88352b7f65 (diff) | |
download | vyatta-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.pl | 3 |
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"; } |