From 491a63b5d451122e044ae34060d6d92e01c6a5e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Fri, 13 Oct 2000 20:22:46 +0000 Subject: [PATCH] Prevent it from crashing. --- libraries/liblutil/debug.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.5