diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |