Skip to content

Commit 2f0e7cb

Browse files
committed
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 <[email protected]>
1 parent 0693f9d commit 2f0e7cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ sub read_config {
361361
}
362362

363363
sub split_addrs {
364-
return parse_line('\s*,\s*', 1, @_);
364+
return quotewords('\s*,\s*', 1, @_);
365365
}
366366

367367
my %aliases;

0 commit comments

Comments
 (0)