static BOOL initialised;
if (!lp_stat_cache()) return True;
- if (!initialised) {
- initialised = True;
- return hash_table_init( &stat_cache, INIT_STAT_CACHE_SIZE, (compare_function)(strcmp));
+ if (initialised) {
+ hash_clear(&stat_cache);
}
- hash_clear(&stat_cache);
- return hash_table_init( &stat_cache, INIT_STAT_CACHE_SIZE, (compare_function)(strcmp));
+ initialised = hash_table_init( &stat_cache, INIT_STAT_CACHE_SIZE,
+ (compare_function)(strcmp));
+ return initialised;
} /* reset_stat_cache */