projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2102efa
)
fi->actions cannot be non-NULL in rpmfiNew()
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 5 Nov 2008 09:47:29 +0000
(11:47 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 5 Nov 2008 09:47:29 +0000
(11:47 +0200)
lib/rpmfi.c
patch
|
blob
|
history
diff --git
a/lib/rpmfi.c
b/lib/rpmfi.c
index
6ee91e5
..
1ae5477
100644
(file)
--- a/
lib/rpmfi.c
+++ b/
lib/rpmfi.c
@@
-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 =