Erm, really do lazy allocation of fi->replacedSizes
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 19 Nov 2008 11:04:07 +0000 (13:04 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 19 Nov 2008 11:04:07 +0000 (13:04 +0200)
- this part was missing from 9bde09b59969088c06eb6f5b8a2597b2e04bd306

lib/rpmfi.c

index ee16319..2bfedbf 100644 (file)
@@ -1353,8 +1353,6 @@ rpmfi rpmfiNew(const rpmts ts, Header h, rpmTag tagN, rpmfiFlags flags)
     if (!(flags & RPMFI_NOFILEINODES))
        _hgfi(h, RPMTAG_FILEINODES, &td, scareFlags, fi->finodes);
 
-    fi->replacedSizes = xcalloc(fi->fc, sizeof(*fi->replacedSizes));
-
     if (!(flags & RPMFI_NOFILEUSER))
        _hgfi(h, RPMTAG_FILEUSERNAME, &td, defFlags, fi->fuser);
     if (!(flags & RPMFI_NOFILEGROUP))