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

Denys Vlasenko vda.linux at googlemail.com
Thu Aug 10 11:22:01 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=5da5365d3caeba421331132518abb0abb78ff20e
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 archival/rpm.c | 2 ++
 1 file changed, 2 insertions(+)

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]);


More information about the busybox-cvs mailing list