From: Julio Sánchez Fernández Date: Fri, 13 Oct 2000 20:22:46 +0000 (+0000) Subject: Prevent it from crashing. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1752 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=491a63b5d451122e044ae34060d6d92e01c6a5e2;p=openldap Prevent it from crashing. --- diff --git a/libraries/liblutil/debug.c b/libraries/liblutil/debug.c index d6db68c3dd..871ef54da8 100644 --- a/libraries/liblutil/debug.c +++ b/libraries/liblutil/debug.c @@ -109,6 +109,7 @@ void lutil_log_int(FILE* file, char *subsys, int level, const char *fmt, va_list */ for( i = 0; i < numLevels; i++ ) { + if ( levelArray[i] == NULL ) return; if ( ! strcasecmp( levelArray[i]->subsystem, subsys ) ) break; }