From: Junio C Hamano Date: Thu, 5 Oct 2006 23:36:15 +0000 (-0700) Subject: git-send-email: avoid uninitialized variable warning. X-Git-Tag: v1.4.3-rc2~13 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bc108f63dad7a5f6d95418cb78a587f5f570eae6;p=git.git 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 --- diff --git a/git-send-email.perl b/git-send-email.perl index 4a2031084..3f50abaeb 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -538,7 +538,7 @@ foreach my $t (@files) { send_message(); # set up for the next message - if ($chain_reply_to || length($reply_to) == 0) { + if ($chain_reply_to || !defined $reply_to || length($reply_to) == 0) { $reply_to = $message_id; if (length $references > 0) { $references .= " $message_id";