From a5c7929900fb78d1a01ff45c3899b544991b4061 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 5 Nov 2009 02:18:31 +0000 Subject: [PATCH] Initialize opt.session_env. --- g13/g13.c | 5 +++++ 1 file changed, 5 insertions(+) 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. */