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:
parent
0794a5344d
commit
010d4c2499
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user