missed one parseError allocator
All checks were successful
Generic zig build / build (push) Successful in 18s
All checks were successful
Generic zig build / build (push) Successful in 18s
This commit is contained in:
parent
5e47d9e71d
commit
1a42735f11
1 changed files with 1 additions and 1 deletions
|
|
@ -1356,7 +1356,7 @@ pub fn iterator(reader: *std.Io.Reader, allocator: std.mem.Allocator, options: P
|
||||||
const first_line = it.state.nextLine() orelse return ParseError.ParseFailed;
|
const first_line = it.state.nextLine() orelse return ParseError.ParseFailed;
|
||||||
|
|
||||||
if (try Directive.parse(allocator, first_line, it.state)) |d| {
|
if (try Directive.parse(allocator, first_line, it.state)) |d| {
|
||||||
if (d != .magic) try parseError(aa, "Magic header not found on first line", it.state);
|
if (d != .magic) try parseError(allocator, "Magic header not found on first line", it.state);
|
||||||
} else try parseError(allocator, "Magic header not found on first line", it.state);
|
} else try parseError(allocator, "Magic header not found on first line", it.state);
|
||||||
|
|
||||||
// Loop through the header material and configure our main parsing
|
// Loop through the header material and configure our main parsing
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue