diff options
author | Junio C Hamano <junkio@cox.net> | 2006-10-05 16:36:15 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-05 16:36:15 -0700 |
commit | bc108f63dad7a5f6d95418cb78a587f5f570eae6 (patch) | |
tree | a069e8055ac994db78c9a551afcb41b2e1a50676 /git-send-email.perl | |
parent | 51a7c66a73ce74fad3b7b05109ed6ce013202fa5 (diff) | |
download | git-bc108f63dad7a5f6d95418cb78a587f5f570eae6.tar.gz git-bc108f63dad7a5f6d95418cb78a587f5f570eae6.tar.xz |
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>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |