aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/satd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/satd.c b/src/satd.c
index df562ac..74b190f 100644
--- a/src/satd.c
+++ b/src/satd.c
@@ -203,7 +203,7 @@ main(int argc, char *argv[])
t (fd == -1);
if (fd != want) {
t (dup2(fd, want) == -1);
- close(fd);
+ close(fd), fd = -1;
}
}
}