changeset 59:2725de59454a

- fixed potentially uninitialized ptr - added todo item to release GIL under certain circumstances
author Tassilo Philipp
date Tue, 22 Jun 2021 18:49:02 +0200
parents e4bf6e44fbf5
children 8e905c0798c7
files python/pydc/README.txt python/pydc/pydc.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python/pydc/README.txt	Mon Feb 08 10:15:27 2021 +0100
+++ b/python/pydc/README.txt	Tue Jun 22 18:49:02 2021 +0200
@@ -135,6 +135,7 @@
 - pydoc "man page"
 - stub location: the pydc-stubs folder isn't picked up by mypy, so I question why this is the suggested way
 - get into freebsd ports
+- releasing GIL when calling into C code (*only* when none of the arguments is a mutable buffer, though)
 
 
 BUGS
--- a/python/pydc/pydc.c	Mon Feb 08 10:15:27 2021 +0100
+++ b/python/pydc/pydc.c	Tue Jun 22 18:49:02 2021 +0200
@@ -296,7 +296,7 @@
 static PyObject*
 pydc_call_impl(PyObject* self, PyObject* args) /* implementation, called by wrapper func pydc_call() */
 {
-	const char  *sig_ptr;
+	const char  *sig_ptr = NULL;
 	char        ch;
 	int         pos, ts;
 	void*       pfunc;