diff options
Diffstat (limited to 'src/patch.c')
-rw-r--r-- | src/patch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/patch.c b/src/patch.c index cb4dbb2..7dafb54 100644 --- a/src/patch.c +++ b/src/patch.c @@ -339,6 +339,8 @@ main (int argc, char **argv) outstate.ofp = fdopen(outfd, binary_transput ? "wb" : "w"); if (! outstate.ofp) pfatal ("%s", TMPOUTNAME); + /* outstate.ofp now owns the file descriptor */ + outfd = -1; } /* find out where all the lines are */ |