diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-10-26 08:01:03 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-10-26 08:01:03 +0300 |
commit | ff7329df359352a8f62a21bbb9fea47cba29b589 (patch) | |
tree | b890f704272a9524941af4fc634861dd61130bf2 /io.c | |
parent | 8ad38bf4d70682433e3f53fe0637929f28d64e3e (diff) | |
parent | 463ef15103eb7708e2f295920faf5a8def306aa0 (diff) | |
download | egawk-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |