]> git.sur5r.net Git - openldap/commitdiff
Remove lint
authorKurt Zeilenga <kurt@openldap.org>
Sat, 26 Nov 2005 04:02:13 +0000 (04:02 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 26 Nov 2005 04:02:13 +0000 (04:02 +0000)
servers/slapd/mods.c

index f6ef580d2d52faeb5132dd1694df4b94246d76ef..918a25a4ffb59c38200858c45e8b4ffbb2031c75 100644 (file)
@@ -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 ) {