aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-10-26 08:01:44 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-10-26 08:01:44 +0300
commitcb5ce43cf0f95b7691dde8341d8ffc4b2cc4d1bc (patch)
treecfec0e75b0fd805b1a9a47a89eaf729868b595e8 /io.c
parentff67a43d663d1f24a9cd26933e57d33af4a4d7a4 (diff)
parentff7329df359352a8f62a21bbb9fea47cba29b589 (diff)
downloadegawk-cb5ce43cf0f95b7691dde8341d8ffc4b2cc4d1bc.tar.gz
egawk-cb5ce43cf0f95b7691dde8341d8ffc4b2cc4d1bc.tar.bz2
egawk-cb5ce43cf0f95b7691dde8341d8ffc4b2cc4d1bc.zip
Merge branch 'master' into feature/nocopy
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 51caf694..f67df9d6 100644
--- a/io.c
+++ b/io.c
@@ -2747,8 +2747,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) {