From 5503d4565d09467c00ac08523ec6c666c02081a7 Mon Sep 17 00:00:00 2001 From: erkin Date: Sat, 25 Dec 2021 13:18:14 +0300 Subject: remote: T4101: Initialize source address string as empty string if none provided --- scripts/vyatta-commit-push.pl | 3 +++ 1 file changed, 3 insertions(+) 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 . '"'; -- cgit v1.2.3