From d261f5e5d0d56dcb3fbf323e94625ac18e7848d6 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 4 Apr 2023 16:51:58 +0200 Subject: common: Change allocation of the comopt symbol. * common/comopt.h (struct gnupg_comopt_s): New. * common/comopt.c (struct gnupg_comopt_s): Define here in the data segment. --- common/comopt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/comopt.c') diff --git a/common/comopt.c b/common/comopt.c index 470cdac61..1cfd581b1 100644 --- a/common/comopt.c +++ b/common/comopt.c @@ -60,6 +60,8 @@ static gpgrt_opt_t opts[] = { }; +struct gnupg_comopt_s comopt = {NULL}; + /* Parse the common options in the homedir and etc. This needs to be * called after the gpgrt config directories are set. MODULE_ID is one of -- cgit v1.2.3