mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 919781 - Fix use of uninitialized cx introduced by bug 917798 r=sfink
This commit is contained in:
parent
d94c4d06d8
commit
cf010d389f
@ -544,11 +544,10 @@ JSDValue*
|
|||||||
jsd_GetException(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
|
jsd_GetException(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
|
||||||
{
|
{
|
||||||
JSContext* cx;
|
JSContext* cx;
|
||||||
JS::RootedValue val(cx);
|
|
||||||
|
|
||||||
if(!(cx = _getContextForThreadState(jsdc, jsdthreadstate)))
|
if(!(cx = _getContextForThreadState(jsdc, jsdthreadstate)))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
|
JS::RootedValue val(cx);
|
||||||
if(JS_GetPendingException(cx, &val))
|
if(JS_GetPendingException(cx, &val))
|
||||||
return jsd_NewValue(jsdc, val);
|
return jsd_NewValue(jsdc, val);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user