JSON-18 fix copy-paste error that cause a crash when GNUPGHOME environment variable is set, but GPG_AGENT_INFO is not set

ENGINE-187
Roker 6 years ago
parent 489c2509a8
commit ec4ea3c09a

@ -22,7 +22,7 @@ GpgEnvironment getGpgEnvironment()
}
const char* ai = std::getenv("GPG_AGENT_INFO");
if(home)
if(ai)
{
ge.gpg_agent_info = std::string(ai);
}

Loading…
Cancel
Save