Prevent it from crashing.

This commit is contained in:
Julio Sánchez Fernández 2000-10-13 20:22:46 +00:00
parent 9ad5246a9a
commit 491a63b5d4

View 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;
}