From 463ef15103eb7708e2f295920faf5a8def306aa0 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 26 Oct 2016 08:00:35 +0300 Subject: Minor bug fix for init_awkpath. --- io.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index 931dcfe2..ab4029e1 100644 --- a/io.c +++ b/io.c @@ -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) { -- cgit v1.2.3