Initialise replaced on rpmfiNew
authorPaul Nasrat <pnasrat@redhat.com>
Thu, 21 Jun 2007 07:57:01 +0000 (08:57 +0100)
committerPaul Nasrat <pnasrat@redhat.com>
Thu, 21 Jun 2007 07:57:01 +0000 (08:57 +0100)
lib/rpmfi.c

index 38bee29..9708df3 100644 (file)
@@ -1335,6 +1335,7 @@ if (fi->actions == NULL)
     xx = hge(h, RPMTAG_FILEINODES, NULL, (void **) &fi->finodes, NULL);
     xx = hge(h, RPMTAG_FILECONTEXTS, NULL, (void **) &fi->fcontexts, NULL);
 
+    fi->replaced = NULL;
     fi->replacedSizes = xcalloc(fi->fc, sizeof(*fi->replacedSizes));
 
     xx = hge(h, RPMTAG_FILEUSERNAME, NULL, (void **) &fi->fuser, NULL);