mirror of https://github.com/pyodide/pyodide.git
Fix uninitialized variables in PyProxy (#1183)
Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
This commit is contained in:
parent
68cdeb519d
commit
28f168cf2e
|
@ -74,9 +74,9 @@ JsProxy_GetAttr(PyObject* self, PyObject* attr)
|
|||
PyErr_Clear();
|
||||
|
||||
bool success = false;
|
||||
JsRef idresult;
|
||||
JsRef idresult = 0;
|
||||
// result:
|
||||
PyObject* pyresult;
|
||||
PyObject* pyresult = NULL;
|
||||
|
||||
const char* key = PyUnicode_AsUTF8(attr);
|
||||
FAIL_IF_NULL(key);
|
||||
|
|
Loading…
Reference in New Issue