fd: plug an always overwritten initialization in fdalloc

This commit is contained in:
Mateusz Guzik 2015-04-26 17:27:55 +00:00
parent 203322f966
commit 8d0a4ab212
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282033

View File

@ -1609,7 +1609,7 @@ fdalloc(struct thread *td, int minfd, int *result)
{
struct proc *p = td->td_proc;
struct filedesc *fdp = p->p_fd;
int fd = -1, maxfd, allocfd;
int fd, maxfd, allocfd;
#ifdef RACCT
int error;
#endif