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

fix last commit - do not reset ret to NULL.

parent 8949ca82
No related branches found
No related tags found
No related merge requests found
......@@ -121,10 +121,9 @@ extern int thread_suid_broken; /* NPTL is no longer broken */
\
if(JSSTSlenptr==NULL) \
JSSTSlenptr=&JSSTSlen; \
(ret)=NULL; \
if((str) != NULL) { \
if((JSSTSstrval=JS_GetStringCharsAndLength((cx), (str), JSSTSlenptr))) { \
if(*sizeptr < (*JSSTSlenptr+1)) { \
if((*sizeptr < (*JSSTSlenptr+1 )) || (ret)==NULL) { \
*sizeptr = *JSSTSlenptr+1; \
if((JSSTStmpptr=(char *)realloc((ret), *sizeptr))==NULL) { \
JS_ReportError(cx, "Error reallocating %lu bytes at %s:%d", (*JSSTSlenptr)+1, getfname(__FILE__), __LINE__); \
......
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