Remove dead keyp & keylen assignments in rpmdbNextIterator()
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 31 May 2011 08:57:45 +0000 (11:57 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 31 May 2011 08:57:45 +0000 (11:57 +0300)
- Both get assigned to their values earlier in the loop and neither
  is used beyond this point in the loop .. so these are useless.

lib/rpmdb.c

index e168b4f..b5c213c 100644 (file)
@@ -1768,8 +1768,6 @@ top:
 #endif
        rc = dbiCursorGet(mi->mi_dbc, &key, &data, DB_SET);
        data.flags = 0;
-       keyp = key.data;
-       keylen = key.size;
        uh = data.data;
        uhlen = data.size;
        if (rc)