From e530b4e642d82e8a1482092fc8197e586104568f Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 8 May 2015 16:35:10 -0700 Subject: [PATCH] Update fstapi.c to the latest from GTKWave --- vpi/fstapi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vpi/fstapi.c b/vpi/fstapi.c index 693722ce3..0afd73a8f 100644 --- a/vpi/fstapi.c +++ b/vpi/fstapi.c @@ -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);