mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
Initialize opt.session_env.
This commit is contained in:
parent
16a8979984
commit
a5c7929900
1 changed files with 5 additions and 0 deletions
|
@ -369,6 +369,11 @@ main ( int argc, char **argv)
|
|||
|
||||
create_dotlock (NULL); /* Register locking cleanup. */
|
||||
|
||||
opt.session_env = session_env_new ();
|
||||
if (!opt.session_env)
|
||||
log_fatal ("error allocating session environment block: %s\n",
|
||||
strerror (errno));
|
||||
|
||||
opt.homedir = default_homedir ();
|
||||
|
||||
/* First check whether we have a config file on the commandline. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue