Skip to content

Commit

Permalink
git-send-email: avoid uninitialized variable warning.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Oct 5, 2006
1 parent 51a7c66 commit bc108f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit bc108f6

Please sign in to comment.