fi->actions cannot be non-NULL in rpmfiNew()
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 5 Nov 2008 09:47:29 +0000 (11:47 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 5 Nov 2008 09:47:29 +0000 (11:47 +0200)
lib/rpmfi.c

index 6ee91e5..1ae5477 100644 (file)
@@ -1276,8 +1276,7 @@ rpmfi rpmfiNew(const rpmts ts, Header h, rpmTag tagN, rpmfiFlags flags)
     fi->action = FA_UNKNOWN;
     fi->flags = 0;
 
-if (fi->actions == NULL)
-       fi->actions = xcalloc(fi->fc, sizeof(*fi->actions));
+    fi->actions = xcalloc(fi->fc, sizeof(*fi->actions));
 
     /* XXX TR_REMOVED needs CPIO_MAP_{ABSOLUTE,ADDDOT} CPIO_ALL_HARDLINKS */
     fi->mapflags =