aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-10-26 08:01:03 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-10-26 08:01:03 +0300
commitff7329df359352a8f62a21bbb9fea47cba29b589 (patch)
treeb890f704272a9524941af4fc634861dd61130bf2 /io.c
parent8ad38bf4d70682433e3f53fe0637929f28d64e3e (diff)
parent463ef15103eb7708e2f295920faf5a8def306aa0 (diff)
downloadegawk-ff7329df359352a8f62a21bbb9fea47cba29b589.tar.gz
egawk-ff7329df359352a8f62a21bbb9fea47cba29b589.tar.bz2
egawk-ff7329df359352a8f62a21bbb9fea47cba29b589.zip
Merge branch 'gawk-4.1-stable'
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) {