diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-02-07 17:34:48 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-02-07 17:34:48 +0000 |
commit | 010d4c2499833e1b9a093810ae84382c5835bbf7 (patch) | |
tree | 93777ecadb7cb747fb7ac6ebf62516b45fccd876 /lib/libc | |
parent | 0794a5344dcd0e43799d2048a884a1792d9b3050 (diff) | |
download | FreeBSD-src-010d4c2499833e1b9a093810ae84382c5835bbf7.zip FreeBSD-src-010d4c2499833e1b9a093810ae84382c5835bbf7.tar.gz |
Fix a f^Hdamn typo, which prevented to fopen() more that 17 files at once.
Tested by: knu, sobomax and other #bsdcode'rs
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/findfp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |