]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix cdecl string parsing during recording.
authorMike Pall <mike>
Thu, 28 Jun 2012 18:17:08 +0000 (20:17 +0200)
committerMike Pall <mike>
Thu, 28 Jun 2012 18:17:08 +0000 (20:17 +0200)
src/lj_crecord.c

index 95d09e48cf0edc1f6c92f597b51400e5127c39ea..d46a239cdfbc66b27f8fd4d23d371d3b292a475c 100644 (file)
@@ -80,6 +80,7 @@ static CTypeID argv2ctype(jit_State *J, TRef tr, cTValue *o)
     oldtop = cp.cts->top;
     cp.srcname = strdata(s);
     cp.p = strdata(s);
+    cp.param = NULL;
     cp.mode = CPARSE_MODE_ABSTRACT|CPARSE_MODE_NOIMPLICIT;
     if (lj_cparse(&cp) || cp.cts->top > oldtop)  /* Avoid new struct defs. */
       lj_trace_err(J, LJ_TRERR_BADTYPE);