Fix a f^Hdamn typo, which prevented to fopen() more that 17 files at once.

Tested by:	knu, sobomax and other #bsdcode'rs
This commit is contained in:
Maxim Sobolev 2001-02-07 17:34:48 +00:00
parent 036f8336fa
commit a06f15e4b8

View File

@ -129,7 +129,7 @@ __sfp()
goto found;
}
THREAD_UNLOCK(); /* don't hold lock while malloc()ing. */
if ((g == moreglue(NDYNAMIC)) == NULL)
if ((g = moreglue(NDYNAMIC)) == NULL)
return (NULL);
THREAD_LOCK(); /* reacquire the lock */
SET_GLUE_PTR(lastglue->next, g); /* atomically append glue to list */