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>
Thomas Rast committed
Jun 26, 2008 at 23:03 UTC
fa835cd5728411bfd8f851e7327e11ad809a59d1
1 file changed
+3
git-send-email.perl
+3
@@ -313,6 +313,9 @@ foreach my $setting (values %config_bool_settings) {
313
${$setting->[0]} = $setting->[1] unless (defined (${$setting->[0]}));
314
}
315
316
+# 'default' encryption is none -- this only prevents a warning
317
+$smtp_encryption = '' unless (defined $smtp_encryption);
318
+
319
# Set CC suppressions
320
my(%suppress_cc);
321
if (@suppress_cc) {