Make GCC happy by removing an unused variable defintion.
[openssl.git] / crypto / x509 / x509name.c
index 650e71b..7a1b2b7 100644 (file)
@@ -154,7 +154,7 @@ X509_NAME *name;
 int loc;
        {
        X509_NAME_ENTRY *ret;
-       int i,j,n,set_prev,set_next;
+       int i,n,set_prev,set_next;
        STACK *sk;
 
        if ((name == NULL) || (sk_num(name->entries) <= loc) || (loc < 0))
@@ -181,11 +181,8 @@ int loc;
         * so basically only if prev and next differ by 2, then
         * re-number down by 1 */
        if (set_prev+1 < set_next)
-               {
-               j=set_next-set_prev-1;
                for (i=loc; i<n; i++)
-                       ((X509_NAME_ENTRY *)sk_value(sk,loc-1))->set-=j;
-               }
+                       ((X509_NAME_ENTRY *)sk_value(sk,i))->set--;
        return(ret);
        }