Skip to content

Commit

Permalink
Don't close stderr
Browse files Browse the repository at this point in the history
Fixes #26
  • Loading branch information
Arnau478 committed May 13, 2024
1 parent c6c30b8 commit 6a4592e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/options.zig
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ pub fn getOptions(allocator: std.mem.Allocator, args: argparse.ParseResult, stdo
allocator.free(tuple[1]);
}

const stderr = std.io.getStdErr();
defer stderr.close();

const source = try tuple[0].readToEndAllocOptions(allocator, std.math.maxInt(usize), null, 1, 0);
defer allocator.free(source);

Expand Down

0 comments on commit 6a4592e

Please sign in to comment.