diff --git a/vpath.c b/vpath.c index 34e43fc3..230bb6ab 100644 --- a/vpath.c +++ b/vpath.c @@ -158,8 +158,9 @@ construct_vpath_list (pattern, dirpath) free ((char *) path->searchpath); free ((char *) path); } + else + lastpath = path; - lastpath = path; path = next; }