From 0369a938254747fa2ab9ea09fe48b9c84ae7e19e Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 18 Sep 2011 20:52:13 +0000 Subject: We compute various values for vpath lookup the first time through and store them in static variables; however one value (std_dirs) was not being stored statically so the second time through it was not set. Fixes Savannah bug #32511 --- remake.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'remake.c') diff --git a/remake.c b/remake.c index 669eadc..5526624 100644 --- a/remake.c +++ b/remake.c @@ -1538,8 +1538,7 @@ library_search (const char *lib, FILE_TIMESTAMP *mtime_ptr) unsigned int liblen; /* Information about the earliest (in the vpath sequence) match. */ - unsigned int best_vpath, best_path; - unsigned int std_dirs = 0; + unsigned int best_vpath = 0, best_path = 0; char **dp; @@ -1558,6 +1557,7 @@ library_search (const char *lib, FILE_TIMESTAMP *mtime_ptr) static char *buf = NULL; static unsigned int buflen = 0; static int libdir_maxlen = -1; + static unsigned int std_dirs = 0; char *libbuf = variable_expand (""); /* Expand the pattern using LIB as a replacement. */ -- cgit v1.2.3