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
|
|
@ -5,6 +5,10 @@ See the RELEASENOTES file for a summary of changes in each release.
|
||||||
Version 2.0.11 (in progress)
|
Version 2.0.11 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
2013-08-01: wsfulton
|
||||||
|
[Python] Apply SF patch #340 - Uninitialized variable fix in SWIG_Python_NonDynamicSetAttr
|
||||||
|
when using -builtin.
|
||||||
|
|
||||||
2013-08-01: wsfulton
|
2013-08-01: wsfulton
|
||||||
[Python, Ruby, Ocaml] Apply SF patch #341 - fix a const_cast in generated code that was generating
|
[Python, Ruby, Ocaml] Apply SF patch #341 - fix a const_cast in generated code that was generating
|
||||||
a <:: digraph when using the unary scope operator (::) (global scope) in a template type.
|
a <:: digraph when using the unary scope operator (::) (global scope) in a template type.
|
||||||
|
|
|
||||||
|
|
@ -1742,7 +1742,7 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
|
||||||
PyObject *descr;
|
PyObject *descr;
|
||||||
PyObject *encoded_name;
|
PyObject *encoded_name;
|
||||||
descrsetfunc f;
|
descrsetfunc f;
|
||||||
int res;
|
int res = -1;
|
||||||
|
|
||||||
# ifdef Py_USING_UNICODE
|
# ifdef Py_USING_UNICODE
|
||||||
if (PyString_Check(name)) {
|
if (PyString_Check(name)) {
|
||||||
|
|
@ -1765,7 +1765,6 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = -1;
|
|
||||||
descr = _PyType_Lookup(tp, name);
|
descr = _PyType_Lookup(tp, name);
|
||||||
f = NULL;
|
f = NULL;
|
||||||
if (descr != NULL)
|
if (descr != NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue