From 49622f59cec8c4f67173bcb999b4406671a27f51 Mon Sep 17 00:00:00 2001 From: dzaima Date: Tue, 12 Oct 2021 00:56:28 +0300 Subject: [PATCH] =?UTF-8?q?fix=20=E2=80=A2wdpath=20refcounting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/sysfn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtins/sysfn.c b/src/builtins/sysfn.c index f10e2ef4..1621c0e1 100644 --- a/src/builtins/sysfn.c +++ b/src/builtins/sysfn.c @@ -762,7 +762,7 @@ B sys_c1(B t, B x) { r.a[i] = inc(fileNS); } else if (eqStr(c, U"wdpath")) { - if (!wdpath.u) wdpath = path_abs(cdPath); + if (!wdpath.u) wdpath = path_abs(inc(cdPath)); r.a[i] = inc(wdpath); } else if (eqStr(c, U"internal")) r.a[i] = getInternalNS();