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:
sobomax 2001-02-07 17:34:48 +00:00
parent 0794a5344d
commit 010d4c2499

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 */