summaryrefslogtreecommitdiff
path: root/bin/pdksh/table.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-08-19 20:09:10 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-08-19 20:09:10 +0000
commite7e852656e3beb5f62f8c146ba24004cfda2cf88 (patch)
treeb312bc3e985b3f1cf19691c779e7870219573b6e /bin/pdksh/table.c
parent1e9e82f84b5de8bcd110c41c780f476397c385d9 (diff)
update to pdksh-5.2.8
Diffstat (limited to 'bin/pdksh/table.c')
-rw-r--r--bin/pdksh/table.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/pdksh/table.c b/bin/pdksh/table.c
index 03558fa137a..3b2861bb63f 100644
--- a/bin/pdksh/table.c
+++ b/bin/pdksh/table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: table.c,v 1.1 1996/08/14 06:19:11 downsj Exp $ */
+/* $OpenBSD: table.c,v 1.2 1996/08/19 20:08:59 downsj Exp $ */
/*
* dynamic hashed associative table for commands and variables
@@ -64,7 +64,7 @@ texpand(tp, nsize)
p += tp->size;
*p = tblp;
tp->nfree--;
- } else {
+ } else if (!(tblp->flag & FINUSE)) {
afree((void*)tblp, tp->areap);
}
afree((void*)otblp, tp->areap);
@@ -125,7 +125,7 @@ tenter(tp, n, h)
p->flag = 0;
p->type = 0;
p->areap = tp->areap;
- p->field = 0;
+ p->u2.field = 0;
p->u.array = (struct tbl *)0;
memcpy(p->name, n, len);