summaryrefslogtreecommitdiffstats
path: root/g13
diff options
context:
space:
mode:
authorMarcus Brinkmann <mb@g10code.com>2009-11-05 03:18:31 +0100
committerMarcus Brinkmann <mb@g10code.com>2009-11-05 03:18:31 +0100
commita5c7929900fb78d1a01ff45c3899b544991b4061 (patch)
treecd4a33d8b5ba2dcbdecd922c34912d90ccc7bedb /g13
parentAdd help strings for all commands (diff)
downloadgnupg2-a5c7929900fb78d1a01ff45c3899b544991b4061.tar.xz
gnupg2-a5c7929900fb78d1a01ff45c3899b544991b4061.zip
Initialize opt.session_env.
Diffstat (limited to 'g13')
-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. */