This commit is contained in:
richard 2021-11-12 00:34:43 +00:00
parent 183cdd52c6
commit c784857527
2 changed files with 5 additions and 2 deletions

View file

@ -77,7 +77,10 @@ def makefunc(a):
if result is None:
return
if str(type(result)) == "<class '_cffi_backend._CDataBase'>" and str(result).startswith("<cdata 'char *'"):
result = ffi.string(result).decode('utf-8')
if str(result) == "<cdata 'char *' NULL>":
result = ""
else:
result = ffi.string(result).decode('utf-8')
return result
return func

View file

@ -1 +1 @@
__version__ = "4.0.0.1"
__version__ = "4.0.0.2"