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>
This commit is contained in:
Junio C Hamano 2006-10-05 16:36:15 -07:00
parent 51a7c66a73
commit bc108f63da

View file

@ -538,7 +538,7 @@ sub send_message
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";