diff options
author | Thomas Rast <trast@student.ethz.ch> | 2008-06-26 23:03:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-06-28 16:49:33 -0700 |
commit | fa835cd5728411bfd8f851e7327e11ad809a59d1 (patch) | |
tree | 4f64a8d06258efa60504b854bb03ba46778ba64e | |
parent | git-send-email: add support for TLS via Net::SMTP::SSL (diff) | |
download | tgif-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-x | git-send-email.perl | 3 |
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) { |