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:
parent
b1b111b4b2
commit
0551bcebfb
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ pub fn fio2str(o: fio.FIOBJ) ?[]const u8 {
|
|||
const x: fio.fio_str_info_s = fio.fiobj_obj2cstr(o);
|
||||
if (x.data == 0)
|
||||
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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue