diff options
author | Brandon Casey <drafnel@gmail.com> | 2017-09-25 07:08:04 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-25 08:35:52 +0300 |
commit | 1a9bf1e176439d415b97fb8c5a556f69ea503877 (patch) | |
tree | 07681bd8a63f0e2c81a319d6d32b35493512b0ce /parse-options.c | |
parent | c97ee171a6b5a7e41234d46341b496146fa08bf1 (diff) |
parse-options: write blank line to correct output stream
When commit 54e6dc7 added translation support to parse-options, an
fprintf was mistakenly replaced by a call to putchar(). Let's use fputc
instead.
Fixes t0040.11, t0040.12, t0040.33, and t1502.8.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse-options.c')
-rw-r--r-- | parse-options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-options.c b/parse-options.c index 0dd9fc6a0d..6a03a5269a 100644 --- a/parse-options.c +++ b/parse-options.c @@ -599,7 +599,7 @@ static int usage_with_options_internal(struct parse_opt_ctx_t *ctx, if (**usagestr) fprintf_ln(outfile, _(" %s"), _(*usagestr)); else - putchar('\n'); + fputc('\n', outfile); usagestr++; } |