summaryrefslogtreecommitdiff
path: root/xserver
diff options
context:
space:
mode:
Diffstat (limited to 'xserver')
-rw-r--r--xserver/hw/xfree86/os-support/bsd/bsd_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/hw/xfree86/os-support/bsd/bsd_init.c b/xserver/hw/xfree86/os-support/bsd/bsd_init.c
index 8eb65b409..f6c19d090 100644
--- a/xserver/hw/xfree86/os-support/bsd/bsd_init.c
+++ b/xserver/hw/xfree86/os-support/bsd/bsd_init.c
@@ -627,9 +627,9 @@ xf86OpenWScons(void)
/* strip number, assuming 0 */
p = strchr(vtprefix, '0');
*p = '\0';
- close(fd);
fd = -1;
}
+ close(fd);
}
}
if (VTnum != -1) {