summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/rpm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/rpm.c b/archival/rpm.c
index cca17da..c24cfdf 100644
--- a/archival/rpm.c
+++ b/archival/rpm.c
@@ -353,6 +353,7 @@ int rpm_main(int argc, char **argv)
{
int opt, func = 0;
+ INIT_G();
G.pagesize = getpagesize();
while ((opt = getopt(argc, argv, "iqpldc")) != -1) {
@@ -515,6 +516,7 @@ int rpm2cpio_main(int argc UNUSED_PARAM, char **argv)
const char *str;
int rpm_fd;
+ INIT_G();
G.pagesize = getpagesize();
rpm_fd = rpm_gettags(argv[1]);