X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-log.c;h=a4186eac8ea395143d25b16b94171b3d4e75d444;hb=444649e5a833c6ed24e0e92364923324d9ffb386;hp=073a2a16a3fafd66d13b1ed106a0016617ec63ad;hpb=68fb4650497d6acbf6d407513cd2e2d960442e3b;p=git.git diff --git a/builtin-log.c b/builtin-log.c index 073a2a16a..a4186eac8 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -589,7 +589,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix) get_patch_ids(&rev, &ids, prefix); if (!use_stdout) - realstdout = fdopen(dup(1), "w"); + realstdout = xfdopen(xdup(1), "w"); prepare_revision_walk(&rev); while ((commit = get_revision(&rev)) != NULL) {