[git] GnuPG - branch, master, updated. gnupg-2.2.7-208-gadce73b

[email protected] (by NIIBE Yutaka)
Newsgroups gmane.comp.encryption.gpg.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  adce73b86fd49d5bbb8884231a26cc7533d400e2 (commit)
      from  bee65edfbc8cc2c369e5941cc9d1a01a0519b388 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit adce73b86fd49d5bbb8884231a26cc7533d400e2
Author: NIIBE Yutaka <[email protected]>
Date:   Mon Sep 10 09:16:50 2018 +0900

    agent: Fix error code check from npth_mutex_init.
    
    * agent/call-pinentry.c (initialize_module_call_pinentry): It's an
    error when npth_mutex_init returns non-zero.
    
    --
    
    Actually, initialize_module_call_pinentry is only called once from
    main.  So, this bug had no harm and having the static variable
    INITIALIZED is not needed.
    
    Signed-off-by: NIIBE Yutaka <[email protected]>

diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index af4eb06..048443a 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -98,11 +98,15 @@ void
 initialize_module_call_pinentry (void)
 {
   static int initialized;
+  int err;
 
   if (!initialized)
     {
-      if (npth_mutex_init (&entry_lock, NULL))
-        initialized = 1;
+      err = npth_mutex_init (&entry_lock, NULL);
+      if (err)
+	log_fatal ("error initializing mutex: %s\n", strerror (err));
+
+      initialized = 1;
     }
 }
 

-----------------------------------------------------------------------

Summary of changes:
 agent/call-pinentry.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.