send-email: futureproof split_addrs() sub

Matt Kraai points out that calling parse_line() assuming that the caller
ever passes only one argument is a bug waiting to happen, and he is
right.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano 2008-12-21 01:57:59 -08:00
parent 0693f9ddad
commit 2f0e7cbbb0

View File

@ -361,7 +361,7 @@ foreach my $entry (@bcclist) {
}
sub split_addrs {
return parse_line('\s*,\s*', 1, @_);
return quotewords('\s*,\s*', 1, @_);
}
my %aliases;