]> git.sur5r.net Git - openldap/commitdiff
Trim unneeded tmp var
authorHoward Chu <hyc@openldap.org>
Sat, 1 Dec 2007 11:44:18 +0000 (11:44 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 1 Dec 2007 11:44:18 +0000 (11:44 +0000)
servers/slapd/schema_init.c

index 9ac07b326e7c8ba519557bc1192257921c26bc6f..fa75175acce52af1ff36b722156c7ffef939ea27 100644 (file)
@@ -2173,7 +2173,7 @@ integerIndexer(
        void *ctx )
 {
        char ibuf[64];
-       struct berval iv, itmp;
+       struct berval itmp;
        BerVarray keys;
        int i, rc;
 
@@ -2204,8 +2204,7 @@ integerIndexer(
                                itmp.bv_val = slap_sl_realloc( itmp.bv_val, itmp.bv_len, ctx );
                        }
                }
-               iv = itmp;
-               rc = integerVal2Key( &values[i], &keys[i], &iv );
+               rc = integerVal2Key( &values[i], &keys[i], &itmp );
                if ( rc )
                        goto leave;
        }