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