aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-10-26 08:01:50 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-10-26 08:01:50 +0300
commite404706d5e2ea41229fe5be9b0725202f49bf308 (patch)
treee854058fbc90ee9df581b1dafdc7bf7df24a2faa /io.c
parentd9021db4fd5558ca061987ec3face924adaf696b (diff)
parentff7329df359352a8f62a21bbb9fea47cba29b589 (diff)
downloadegawk-e404706d5e2ea41229fe5be9b0725202f49bf308.tar.gz
egawk-e404706d5e2ea41229fe5be9b0725202f49bf308.tar.bz2
egawk-e404706d5e2ea41229fe5be9b0725202f49bf308.zip
Merge branch 'master' into feature/typed-regex
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/io.c b/io.c
index 00a627fe..816ff56a 100644
--- a/io.c
+++ b/io.c
@@ -2748,8 +2748,10 @@ init_awkpath(path_info *pi)
start = path;
i = 0;
- if (*path == envsep) /* null entry at front of path */
+ if (*path == envsep) { /* null entry at front of path */
pi->awkpath[i++] = ".";
+ pi->max_pathlen = 1;
+ }
while (*start) {
if (*start == envsep) {