summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2017-08-10 13:22:01 +0200
committerDenys Vlasenko2017-08-10 13:22:01 +0200
commit5da5365d3caeba421331132518abb0abb78ff20e (patch)
tree47668a1d1b3da4f1cd7b96eddd88adb8de229456
parentbac929b99b4a9ca0fd16d696175692b6545907c5 (diff)
downloadbusybox-5da5365d3caeba421331132518abb0abb78ff20e.zip
busybox-5da5365d3caeba421331132518abb0abb78ff20e.tar.gz
rpm,rpm2cpio: INIT_G() was missing (it is a nop here so far)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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]);