diff options
Diffstat (limited to 'plugins/pychrysalide/analysis/db')
| -rw-r--r-- | plugins/pychrysalide/analysis/db/certs.c | 6 | 
1 files changed, 1 insertions, 5 deletions
| diff --git a/plugins/pychrysalide/analysis/db/certs.c b/plugins/pychrysalide/analysis/db/certs.c index 385e277..61b5f58 100644 --- a/plugins/pychrysalide/analysis/db/certs.c +++ b/plugins/pychrysalide/analysis/db/certs.c @@ -312,7 +312,6 @@ bool ensure_python_certs_is_registered(void)  {      PyTypeObject *type;                     /* Type Python pour 'certs'    */      PyObject *module;                       /* Module à recompléter        */ -    int ret;                                /* Bilan d'un appel            */      type = get_python_certs_type(); @@ -325,10 +324,7 @@ bool ensure_python_certs_is_registered(void)          module = get_access_to_python_module("pychrysalide.analysis.db"); -        Py_INCREF(type); -        ret = PyModule_AddObject(module, "certs", (PyObject *)type); - -        if (ret != 0) +        if (!register_python_module_object(module, type))              return false;      } | 
