1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-06 23:17:47 +02:00

Initialize opt.session_env.

This commit is contained in:
Marcus Brinkmann 2009-11-05 02:18:31 +00:00
parent 16a8979984
commit a5c7929900

View File

@ -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. */