diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2011-11-07 16:59:58 +0100 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2011-11-18 15:36:41 +0100 |
commit | 0e0511c68692a08e6d810682c9a211c9051e2b1a (patch) | |
tree | f2c1b762282adf28dc405def020c3a89089f1ff5 /bindings | |
parent | 773cdab883887751e727f31c60cae83b227526e2 (diff) | |
download | lasso-0e0511c68692a08e6d810682c9a211c9051e2b1a.tar.gz lasso-0e0511c68692a08e6d810682c9a211c9051e2b1a.tar.xz lasso-0e0511c68692a08e6d810682c9a211c9051e2b1a.zip |
[binding python] prevent warning in wrapper_top.c under hardy with gcc 4.2.4
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/wrapper_top.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c index 7879bb13..c80bf1d6 100644 --- a/bindings/python/wrapper_top.c +++ b/bindings/python/wrapper_top.c @@ -606,8 +606,9 @@ static PyObject *get_logger_object() { } /* XXX: needed so that PyImport_ImportModule("logging") always works */ logging_module = PyImport_ImportModule("sys"); - if (logging_module) + if (logging_module) { Py_DECREF(logging_module); + } logging_module = PyImport_ImportModule("logging"); if (logging_module) { _logger_object = PyObject_CallMethod(logging_module, "getLogger", |