Make sl_context just return NULL in tool mode, we have no threads here

This commit is contained in:
Howard Chu 2005-01-19 21:42:04 +00:00
parent aff5133b89
commit 4c65aa9c44

View file

@ -552,6 +552,8 @@ slap_sl_context( void *ptr )
struct slab_heap *sh = NULL;
void *ctx;
if ( slapMode & SLAP_TOOL_MODE ) return NULL;
#ifdef NO_THREADS
sh = slheap;
#else