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>
Junio C Hamano committed
Dec 21, 2008 at 01:57 UTC
2f0e7cbbb0703d510a761e2892727e84b3cdcbec
1 file changed
+1
-1
git-send-email.perl
+1
-1
@@ -361,7 +361,7 @@ foreach my $entry (@bcclist) {
361
}
362
363
sub split_addrs {
364
- return parse_line('\s*,\s*', 1, @_);
364
+ return quotewords('\s*,\s*', 1, @_);
365
}
366
367
my %aliases;