diff options
| author | erkin <e.altunbas@vyos.io> | 2021-12-25 13:18:14 +0300 |
|---|---|---|
| committer | erkin <e.altunbas@vyos.io> | 2021-12-25 13:18:14 +0300 |
| commit | 5503d4565d09467c00ac08523ec6c666c02081a7 (patch) | |
| tree | 67b71351256892d43c06bb503e0cffcb145285da | |
| parent | b01ef9780359c3913bc3fb991b75887e21ffc144 (diff) | |
| download | vyatta-config-mgmt-5503d4565d09467c00ac08523ec6c666c02081a7.tar.gz vyatta-config-mgmt-5503d4565d09467c00ac08523ec6c666c02081a7.zip | |
remote: T4101: Initialize source address string as empty string if none provided
| -rwxr-xr-x | scripts/vyatta-commit-push.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/vyatta-commit-push.pl b/scripts/vyatta-commit-push.pl index 6e5752b..f66a5e4 100755 --- a/scripts/vyatta-commit-push.pl +++ b/scripts/vyatta-commit-push.pl @@ -74,6 +74,9 @@ my $source_address = $config->returnEffectiveValue('source-address'); if (defined($source_address)) { print("Using source address $source_address\n"); } +else { + $source_address = ''; +} # The string needs to be wrapped in quotes, even if it's empty. $source_address = '"' . $source_address . '"'; |
