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 /git-send-email.perl | |
parent | f6bebd121ac531871c4cee576b0baf6814099425 (diff) | |
download | git-fa835cd5728411bfd8f851e7327e11ad809a59d1.tar.gz |
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>
Diffstat (limited to 'git-send-email.perl')
-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) { |