Fix uninitialized variables in PyProxy (#1183)

Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
This commit is contained in:
Roman Yurchak 2021-02-02 09:53:28 +01:00 committed by GitHub
parent 68cdeb519d
commit 28f168cf2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);