aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g13/g13.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/g13/g13.c b/g13/g13.c
index 152058e28..8444b197e 100644
--- a/g13/g13.c
+++ b/g13/g13.c
@@ -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. */