Uninitialized variable fix in SWIG_Python_NonDynamicSetAttr when using -builtin.
SF patch #340
This commit is contained in:
parent
779dc402b6
commit
7491be12e5
2 changed files with 5 additions and 2 deletions
|
|
@ -1742,7 +1742,7 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
|
|||
PyObject *descr;
|
||||
PyObject *encoded_name;
|
||||
descrsetfunc f;
|
||||
int res;
|
||||
int res = -1;
|
||||
|
||||
# ifdef Py_USING_UNICODE
|
||||
if (PyString_Check(name)) {
|
||||
|
|
@ -1765,7 +1765,6 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
|
|||
goto done;
|
||||
}
|
||||
|
||||
res = -1;
|
||||
descr = _PyType_Lookup(tp, name);
|
||||
f = NULL;
|
||||
if (descr != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue