summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2024-06-28 06:48:04 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2024-06-28 06:48:04 +0200
commit14400b2fb3d4e97307799325bb8f704476ce6354 (patch)
treebe31981ed18f40d3390dc1224b8d469c30b03cfc
parentagent: Handle SCD DEVINFO --watch command in a special way. (diff)
downloadgnupg2-14400b2fb3d4e97307799325bb8f704476ce6354.tar.xz
gnupg2-14400b2fb3d4e97307799325bb8f704476ce6354.zip
agent: Initialize thread_startup.fd for pipe connection.
* agent/gpg-agent.c (main): Let it have defined value. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r--agent/gpg-agent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 3e1fb5d5b..a0ac3c622 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -1530,6 +1530,7 @@ main (int argc, char **argv)
strerror (errno) );
agent_exit (1);
}
+ ctrl->thread_startup.fd = GNUPG_INVALID_FD;
ctrl->session_env = session_env_new ();
if (!ctrl->session_env)
{