mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
Remove lint
This commit is contained in:
parent
80143b5fc6
commit
bfba08c103
1 changed files with 2 additions and 1 deletions
|
|
@ -402,11 +402,12 @@ modify_increment_values(
|
|||
for( i = 0; !BER_BVISNULL( &a->a_nvals[i] ); i++ ) {
|
||||
char *tmp;
|
||||
long value;
|
||||
size_t strln;
|
||||
if ( lutil_atol( &value, a->a_nvals[i].bv_val ) != 0 ) {
|
||||
*text = "modify/increment: invalid syntax of original value";
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
}
|
||||
size_t strln = snprintf( str, sizeof(str), "%ld", value+incr );
|
||||
strln = snprintf( str, sizeof(str), "%ld", value+incr );
|
||||
|
||||
tmp = SLAP_REALLOC( a->a_nvals[i].bv_val, strln+1 );
|
||||
if( tmp == NULL ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue