summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Thomas Rast <trast@student.ethz.ch>2008-06-26 23:03:21 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-06-28 16:49:33 -0700
commitfa835cd5728411bfd8f851e7327e11ad809a59d1 (patch)
tree4f64a8d06258efa60504b854bb03ba46778ba64e
parentgit-send-email: add support for TLS via Net::SMTP::SSL (diff)
downloadtgif-fa835cd5728411bfd8f851e7327e11ad809a59d1.tar.xz
git-send-email: prevent undefined variable warnings if no encryption is set
With the previous patch, not configuring any encryption (either on or off) would leave $smtp_encryption undefined. We simply set it to the empty string in that case. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xgit-send-email.perl3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 763072042d..edb12c2aaa 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -313,6 +313,9 @@ foreach my $setting (values %config_bool_settings) {
${$setting->[0]} = $setting->[1] unless (defined (${$setting->[0]}));
}
+# 'default' encryption is none -- this only prevents a warning
+$smtp_encryption = '' unless (defined $smtp_encryption);
+
# Set CC suppressions
my(%suppress_cc);
if (@suppress_cc) {