diff options
| author | Shawn Landden <shawn@git.icu> | 2018-08-19 21:40:14 -0700 |
|---|---|---|
| committer | Shawn Landden <shawn@git.icu> | 2018-08-19 21:42:48 -0700 |
| commit | bb93886791f81830eae1951cc3d89a6992067b55 (patch) | |
| tree | f339276222262dff1abf0cac7da55398d3ee5b75 /std/debug/index.zig | |
| parent | 53b18b079189cce355767ce4fde4fc586f0d3248 (diff) | |
| download | zig-bb93886791f81830eae1951cc3d89a6992067b55.tar.gz zig-bb93886791f81830eae1951cc3d89a6992067b55.zip | |
do not use an allocator when we don't need to because of the existance of PATH_MAX
Diffstat (limited to 'std/debug/index.zig')
| -rw-r--r-- | std/debug/index.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/debug/index.zig b/std/debug/index.zig index f06da85f54..748aa2b969 100644 --- a/std/debug/index.zig +++ b/std/debug/index.zig @@ -341,7 +341,7 @@ pub fn openSelfDebugInfo(allocator: *mem.Allocator) !*ElfStackTrace { } fn printLineFromFile(allocator: *mem.Allocator, out_stream: var, line_info: *const LineInfo) !void { - var f = try os.File.openRead(allocator, line_info.file_name); + var f = try os.File.openRead(line_info.file_name); defer f.close(); // TODO fstat and make sure that the file has the correct size |
