@matheusbsbs / matheus-bagliano / commits / bc108f63da
Fork 0

git-send-email: avoid uninitialized variable warning.

The code took length of $reply_to when it was not even defined, causing -w to warn. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Oct 5, 2006 at 16:36 UTC bc108f63dad7a5f6d95418cb78a587f5f570eae6
1 file changed +1 -1
git-send-email.perl
+1 -1
@@ -538,7 +538,7 @@ foreach my $t (@files) {
538 send_message();
539
540 # set up for the next message
541 - if ($chain_reply_to || length($reply_to) == 0) {
541 + if ($chain_reply_to || !defined $reply_to || length($reply_to) == 0) {
542 $reply_to = $message_id;
543 if (length $references > 0) {
544 $references .= " $message_id";