From 28f168cf2ee82fadabe75e70610152f4c35d7a5c Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Tue, 2 Feb 2021 09:53:28 +0100 Subject: [PATCH] Fix uninitialized variables in PyProxy (#1183) Co-authored-by: Joe Marshall --- src/core/jsproxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/jsproxy.c b/src/core/jsproxy.c index 037d0460b..0cdc21c27 100644 --- a/src/core/jsproxy.c +++ b/src/core/jsproxy.c @@ -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);