mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
Teach Python bindings to process (char *)0
This commit is contained in:
committed by
link2xt
parent
ecbc83390e
commit
d6a0763b1d
@@ -17,6 +17,7 @@ def iter_array(dc_array_t, constructor):
|
|||||||
|
|
||||||
|
|
||||||
def from_dc_charpointer(obj):
|
def from_dc_charpointer(obj):
|
||||||
|
if obj != ffi.NULL:
|
||||||
return ffi.string(ffi.gc(obj, lib.dc_str_unref)).decode("utf8")
|
return ffi.string(ffi.gc(obj, lib.dc_str_unref)).decode("utf8")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user