Skip to content
Snippets Groups Projects
Commit 22049865 authored by deuce's avatar deuce
Browse files

Don't mess with ret until it's allocated.

parent d2ad0a6d
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,6 @@ extern int thread_suid_broken; /* NPTL is no longer broken */
size_t pos; \
const jschar *val; \
\
ret[0]=0; \
if((val=JS_GetStringCharsAndLength(cx, str, &len))) { \
if((ret=alloca(len+1))) { \
for(pos=0; pos<len; pos++) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment