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