Update fstapi.c to the latest from GTKWave
This commit is contained in:
parent
6a3edc63d5
commit
e530b4e642
|
|
@ -2299,12 +2299,14 @@ if(xc && path && path[0])
|
|||
#ifndef _WAVE_HAVE_JUDY
|
||||
const uint32_t hashmask = FST_PATH_HASHMASK;
|
||||
const unsigned char *path2 = (const unsigned char *)path;
|
||||
PPvoid_t pv;
|
||||
#else
|
||||
char *path2 = alloca(slen + 1); /* judy lacks const qualifier in its JudyHSIns definition */
|
||||
PPvoid_t pv;
|
||||
strcpy(path2, path);
|
||||
#endif
|
||||
|
||||
PPvoid_t pv = JudyHSIns(&(xc->path_array), path2, slen, NULL);
|
||||
pv = JudyHSIns(&(xc->path_array), path2, slen, NULL);
|
||||
if(*pv)
|
||||
{
|
||||
sidx = (intptr_t)(*pv);
|
||||
|
|
|
|||
Loading…
Reference in New Issue