summaryrefslogtreecommitdiff
path: root/lib/mempool.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2001-01-17 08:32:28 +0000
committerMartin Mares <mj@ucw.cz>2001-01-17 08:32:28 +0000
commit0766e962e9a9539ceccd23090e5bb8e1301fce8c (patch)
tree18cb43f1392b50bfaffd3dd37fb2972927828613 /lib/mempool.c
parenta2d01907c5b24bab78cc055fa23354597bd44a03 (diff)
Bug fix from Zheng Yuan <zyuan1@cig.mot.com>.
Diffstat (limited to 'lib/mempool.c')
-rw-r--r--lib/mempool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mempool.c b/lib/mempool.c
index a27f2f44..ba95323c 100644
--- a/lib/mempool.c
+++ b/lib/mempool.c
@@ -107,7 +107,7 @@ lp_alloc(linpool *m, unsigned size)
c = xmalloc(sizeof(struct lp_chunk) + size);
m->total_large += size;
c->next = m->first_large;
- m->first_large = c->next;
+ m->first_large = c;
c->size = size;
}
else