aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/satd.c')
-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;
}
}
}