aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-10-26 08:01:22 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-10-26 08:01:22 +0300
commit14b6266c875fd2a7ae3e6f34754aeb33b20ffc72 (patch)
treec9ba04a13ef4685f457063a2515857c6b4b2ded3 /io.c
parentfafd03f5f6b0cbf80ebf5d3006268b7a5ab3fd78 (diff)
parentff7329df359352a8f62a21bbb9fea47cba29b589 (diff)
downloadegawk-14b6266c875fd2a7ae3e6f34754aeb33b20ffc72.tar.gz
egawk-14b6266c875fd2a7ae3e6f34754aeb33b20ffc72.tar.bz2
egawk-14b6266c875fd2a7ae3e6f34754aeb33b20ffc72.zip
Merge branch 'master' into feature/cmake
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) {