From 010d4c2499833e1b9a093810ae84382c5835bbf7 Mon Sep 17 00:00:00 2001 From: sobomax Date: Wed, 7 Feb 2001 17:34:48 +0000 Subject: Fix a f^Hdamn typo, which prevented to fopen() more that 17 files at once. Tested by: knu, sobomax and other #bsdcode'rs --- lib/libc/stdio/findfp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c index 50edcb6..30e8f90 100644 --- a/lib/libc/stdio/findfp.c +++ b/lib/libc/stdio/findfp.c @@ -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 */ -- cgit v1.1