summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-25 18:29:09 +0100
committerGitHub <noreply@github.com>2021-12-25 18:29:09 +0100
commit0d325e103e54448a08e7e9982658bd19e81d0a3a (patch)
tree67b71351256892d43c06bb503e0cffcb145285da
parent1b93bbd39a6e1a0194cf54b5c171c8d33adee428 (diff)
parent5503d4565d09467c00ac08523ec6c666c02081a7 (diff)
downloadvyatta-config-mgmt-1.3.8.tar.gz
vyatta-config-mgmt-1.3.8.zip
Merge pull request #11 from erkin/equuleus1.3.81.3.71.3.61.3.51.3.41.3.3-epa11.3.31.3.2equuleus
remote: T4101: Initialize source address string as empty string if none provided
-rwxr-xr-xscripts/vyatta-commit-push.pl3
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 . '"';