ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rcode_ident.c
(Generate patch)

Comparing ray/src/util/rcode_ident.c (file contents):
Revision 2.4 by greg, Tue Jul 23 17:23:25 2019 UTC vs.
Revision 2.5 by greg, Wed Jul 24 00:17:22 2019 UTC

# 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 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines