diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-10-26 08:00:35 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-10-26 08:00:35 +0300 |
commit | 463ef15103eb7708e2f295920faf5a8def306aa0 (patch) | |
tree | 11a633067620beef0f54f7255a7d9635cdb94368 | |
parent | 04e37f2ec691b6ba1f4e4d57e4baaccbcdd305cc (diff) | |
download | egawk-463ef15103eb7708e2f295920faf5a8def306aa0.tar.gz egawk-463ef15103eb7708e2f295920faf5a8def306aa0.tar.bz2 egawk-463ef15103eb7708e2f295920faf5a8def306aa0.zip |
Minor bug fix for init_awkpath.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2016-10-26 Arnold D. Robbins <arnold@skeeve.com> + + * io.c (init_awkpath): Set max path len for leading separator. + 2016-10-25 Arnold D. Robbins <arnold@skeeve.com> * io.c (init_awkpath): Restore documented behavior whereby @@ -2613,8 +2613,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) { |