diff options
Diffstat (limited to 'usr.bin/elvis/tmp.c')
-rw-r--r-- | usr.bin/elvis/tmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/elvis/tmp.c b/usr.bin/elvis/tmp.c index 46d29ec81daa..c7196df47a67 100644 --- a/usr.bin/elvis/tmp.c +++ b/usr.bin/elvis/tmp.c @@ -779,6 +779,7 @@ SIGTYPE deathtrap(sig) if (tmpnum > 0 && tmpfd >= 0) { close(tmpfd); + tmpfd = -1; sprintf(tmpblk.c, "%s \"%s\" %s", PRESERVE, why, tmpname); system(tmpblk.c); } |