Make sure we don't close(-1); buglet introduced in 1.26.

ok matthieu@
master
miod 2023-08-12 16:16:25 +00:00
parent 849b02b8d8
commit a012b5de33
1 changed files with 1 additions and 1 deletions

View File

@ -627,9 +627,9 @@ xf86OpenWScons(void)
/* strip number, assuming 0 */
p = strchr(vtprefix, '0');
*p = '\0';
fd = -1;
}
close(fd);
fd = -1;
}
}
if (VTnum != -1) {