summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-25 18:28:58 +0100
committerGitHub <noreply@github.com>2021-12-25 18:28:58 +0100
commitaadde15ed0623a78c0fd079052f780c969c4c630 (patch)
tree489c565207a0451f134022be02aca2bde65ddec9
parent261b265ab0b271a69f05014e05e13c097789fc54 (diff)
parentbd63d6ebf8b5b24b25a7784a82fbba07a978ecdd (diff)
downloadvyatta-config-mgmt-aadde15ed0623a78c0fd079052f780c969c4c630.tar.gz
vyatta-config-mgmt-aadde15ed0623a78c0fd079052f780c969c4c630.zip
Merge pull request #10 from erkin/current
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 . '"';