# | Line 91 | Line 91 | create_index(const char *fname, int hdrflags, int ndxb | |
---|---|---|
91 | char **idmap; | |
92 | int idmlen; | |
93 | int nextID = 0; | |
94 | < | LUTAB hashtab = LU_SINIT(free,NULL); |
94 | > | LUTAB hashtab; |
95 | RESOLU rs; | |
96 | long n; | |
97 | int ndx; | |
# | Line 134 | Line 134 | create_index(const char *fname, int hdrflags, int ndxb | |
134 | fputs(": unsupported bits/pixel\n", stderr); | |
135 | return 0; | |
136 | } | |
137 | + | memset(&hashtab, 0, sizeof(hashtab)); |
138 | + | hashtab.hashf = lu_shash; |
139 | + | hashtab.keycmp = strcmp; |
140 | + | hashtab.freek = free; |
141 | if (!idmap || !lu_init(&hashtab, idmlen)) | |
142 | goto memerr; | |
143 | fputc('\n', stdout); /* end of info header */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |