summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Bays <rbays@roatan.(none)>2010-06-04 16:12:32 -0700
committerRobert Bays <rbays@roatan.(none)>2010-06-04 16:12:32 -0700
commit91998009c45701cb74114dbf7ae3ea8dfde9ce79 (patch)
tree10504e8ea2a391dc1ccb17390e061a339ada877d /scripts
parentf3700bfef634767dac83a11e2fc538b3aeb83aa5 (diff)
downloadvyatta-cfg-quagga-91998009c45701cb74114dbf7ae3ea8dfde9ce79.tar.gz
vyatta-cfg-quagga-91998009c45701cb74114dbf7ae3ea8dfde9ce79.zip
clean up potential unitialized var reference
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl
index 0e6f6f85..3ec975b2 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -1134,7 +1134,7 @@ sub check_for_peer_groups {
foreach my $node (@neighbors) {
my $peergroup = $config->returnValue("$node peer-group");
- if ( $peergroup eq $pg ) { push @peers, $node; }
+ if ((defined $peergroup) && ($peergroup eq $pg)) { push @peers, $node; }
}
# if we found peers in the previous statements