1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-21 07:34:08 +00:00

attempt to fix #41

This commit is contained in:
Rene Schallner 2023-09-12 13:53:49 +02:00
parent b1b111b4b2
commit 0551bcebfb

View file

@ -9,7 +9,7 @@ pub fn fio2str(o: fio.FIOBJ) ?[]const u8 {
const x: fio.fio_str_info_s = fio.fiobj_obj2cstr(o); const x: fio.fio_str_info_s = fio.fiobj_obj2cstr(o);
if (x.data == 0) if (x.data == 0)
return null; // TODO: should we return an error? Actually, looking at fiobj_obj2cstr, this is unreachable return null; // TODO: should we return an error? Actually, looking at fiobj_obj2cstr, this is unreachable
return std.mem.span(x.data); return x.data[0..x.len];
} }
pub const FreeOrNot = struct { pub const FreeOrNot = struct {