From c246eeb6f1a79ad6a092efddbc9392976c7dbede Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 2 Feb 2008 14:01:26 +0100 Subject: Remove a static I very much doubt that this is called enough to justify a global. If this turns out to be a hot code path, we might reconsider :-) (This used to be commit 5223d18ea2d891418a0f833f58cc3502cb26ce03) --- source3/passdb/passdb.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3/passdb') diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 4228f6c32f..b6a4126df1 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -443,10 +443,7 @@ bool pdb_gethexhours(const char *p, unsigned char *hours) int algorithmic_rid_base(void) { - static int rid_offset = 0; - - if (rid_offset != 0) - return rid_offset; + int rid_offset; rid_offset = lp_algorithmic_rid_base(); -- cgit