parse-options: write blank line to correct output stream
[gitweb.git] / parse-options.c
index 0dd9fc6a0dd0a518200d9bbd834decb3c3ee22c6..6a03a5269a6e6a77e830306b9403bd30ac1331a5 100644 (file)
@@ -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++;
        }