]> git.sur5r.net Git - openldap/commitdiff
Prevent it from crashing.
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Fri, 13 Oct 2000 20:22:46 +0000 (20:22 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Fri, 13 Oct 2000 20:22:46 +0000 (20:22 +0000)
libraries/liblutil/debug.c

index d6db68c3ddc799bc5009fe37981dd10439f2e1e2..871ef54da8548064e1a69ae3a795d93583413df6 100644 (file)
@@ -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;
        }