rpm,rpm2cpio: INIT_G() was missing (it is a nop here so far)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2017-08-10 13:22:01 +02:00
parent bac929b99b
commit 5da5365d3c

View File

@ -353,6 +353,7 @@ int rpm_main(int argc, char **argv)
{ {
int opt, func = 0; int opt, func = 0;
INIT_G();
G.pagesize = getpagesize(); G.pagesize = getpagesize();
while ((opt = getopt(argc, argv, "iqpldc")) != -1) { while ((opt = getopt(argc, argv, "iqpldc")) != -1) {
@ -515,6 +516,7 @@ int rpm2cpio_main(int argc UNUSED_PARAM, char **argv)
const char *str; const char *str;
int rpm_fd; int rpm_fd;
INIT_G();
G.pagesize = getpagesize(); G.pagesize = getpagesize();
rpm_fd = rpm_gettags(argv[1]); rpm_fd = rpm_gettags(argv[1]);