diff --git a/src/tools/jam/hcache.c b/src/tools/jam/hcache.c index aec513a20e..849b0e2c33 100644 --- a/src/tools/jam/hcache.c +++ b/src/tools/jam/hcache.c @@ -408,7 +408,7 @@ hcache (TARGET *t, LIST *hdrscan) /* 'c' points at the cache entry. Its out of date. */ - l = headers1 (t->boundname, 0); + l = headers1 (t->boundname, hdrscan); c->time = t->time; c->age = 0; diff --git a/src/tools/jam/headers.c b/src/tools/jam/headers.c index 86f31d1110..197d32e464 100644 --- a/src/tools/jam/headers.c +++ b/src/tools/jam/headers.c @@ -75,7 +75,7 @@ headers( TARGET *t ) lol_add( &lol, list_new( L0, t->name, 1 ) ); #ifdef OPT_HEADER_CACHE_EXT - lol_add( &lol, hcache( t, var_get("HDRSCAN") ) ); + lol_add( &lol, hcache( t, hdrscan ) ); #else lol_add( &lol, headers1( t->boundname, hdrscan ) ); #endif