aboutsummaryrefslogtreecommitdiffhomepage
path: root/obj
diff options
context:
space:
mode:
Diffstat (limited to 'obj')
-rw-r--r--obj/elf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/obj/elf.c b/obj/elf.c
index 771d3c0..8defab8 100644
--- a/obj/elf.c
+++ b/obj/elf.c
@@ -63,6 +63,7 @@ str2idx(const char *s)
static pmap_of(uint) ht;
uint *p, i;
+ if (!ht.v) pmap_init(&ht, 1<<8);
if ((p = pmap_get(&ht, s))) return *p;
if (!strs.n) vpush(&strs, 0);
i = strs.n;