summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-11-16 22:49:14 +0000
committerRoland McGrath <roland@redhat.com>1992-11-16 22:49:14 +0000
commit45649948dbef1729a6243349b3b90948365f0dbe (patch)
tree73c870a83e45f31d500812742480239dbd83ce98
parent7d8fafa4b743d7d7e322589b6bb3632c48577a3c (diff)
downloadgunmake-45649948dbef1729a6243349b3b90948365f0dbe.tar.gz
Formerly vpath.c.~5~
-rw-r--r--vpath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vpath.c b/vpath.c
index 986a18a..d804150 100644
--- a/vpath.c
+++ b/vpath.c
@@ -152,6 +152,7 @@ construct_vpath_list (pattern, dirpath)
first colon and one nil, the list terminator and
increment our estimated number for each colon or blank we find. */
maxelem = 2;
+ p = dirpath;
while (*p != '\0')
if (*p++ == ':' || isblank (*p))
++maxelem;