zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 0509414dfecc1e82ed86b21a1c24aa978c2e810f (tree)
parent 4662fd4d92b216708390a2056a201c91773b9bc6
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Fri, 13 Apr 2018 11:31:38 -0400

fix regression with zig install dir

introduced in 1999f0daad505

Diffstat:
Msrc/main.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.cpp b/src/main.cpp @@ -176,9 +176,9 @@ static int find_zig_lib_dir(Buf *out_path) { int err; Buf self_exe_path = BUF_INIT; + buf_resize(&self_exe_path, 0); if (!(err = os_self_exe_path(&self_exe_path))) { Buf *cur_path = &self_exe_path; - buf_resize(cur_path, 0); for (;;) { Buf *test_dir = buf_alloc();