From 103a442be9da91bf2ddb22f416347ce1505e109f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 18 Feb 2004 16:58:00 +0000 Subject: * simple-pwquery.c (agent_open): Ignore an empty GPG_AGENT_INFO. --- common/simple-pwquery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/simple-pwquery.c') diff --git a/common/simple-pwquery.c b/common/simple-pwquery.c index afdc4e2a4..5ceddc613 100644 --- a/common/simple-pwquery.c +++ b/common/simple-pwquery.c @@ -266,7 +266,7 @@ agent_open (int *rfd) *rfd = -1; infostr = getenv ( "GPG_AGENT_INFO" ); - if ( !infostr ) + if ( !infostr || !*infostr ) { #ifdef SPWQ_USE_LOGGING log_error (_("gpg-agent is not available in this session\n")); -- cgit v1.2.3