From: Gary Williams Date: Fri, 20 Oct 2000 14:46:33 +0000 (+0000) Subject: fix lutil_set_debug_level call X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1698 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=696de70df44c7ebacd0179dd6aa1d6da33d0efc7;p=openldap fix lutil_set_debug_level call --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 73eaee6c87..41088400ec 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -803,7 +803,7 @@ read_config( const char *fname ) value_add( &default_referral, vals ); } else if ( strcasecmp( cargv[0], "debug" ) == 0 ) { - int level; + int level; if ( cargc < 3 ) { Debug( LDAP_DEBUG_ANY, "%s: line %d: Error in debug directive, \"debug subsys level\"\n", @@ -812,7 +812,7 @@ read_config( const char *fname ) } level = atoi( cargv[2] ); if ( level <= 0 ) level = lutil_mnem2level( cargv[2] ); - lutil_set_debug_level( cargv[1], atoi( cargv[2] ) ); + lutil_set_debug_level( cargv[1], level ); /* specify an Object Identifier macro */ } else if ( strcasecmp( cargv[0], "objectidentifier" ) == 0 ) { parse_oidm( fname, lineno, cargc, cargv );