git-send-email: prevent undefined variable warnings if no encryption is set
[gitweb.git] / git-send-email.perl
index 763072042db808f5bf4e26c6080a0e7660ff9518..edb12c2aaaa64a13d0c59f8432d2ddd7d1cf75bd 100755 (executable)
@@ -313,6 +313,9 @@ sub read_config {
        ${$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) {