agent: Fix error code check from npth_mutex_init.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 10 Sep 2018 00:16:50 +0000 (09:16 +0900)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 8 Oct 2018 15:36:01 +0000 (16:36 +0100)
commit776d059b018967be3441d99dc2c6a3587b6d7aef
tree1ab1c24366d0b7e820cd233578b779be8bb36787
parent956f85c7e489b6be728f5f9b2ba9bd3e0dcf37a6
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.

--

Cherry-pick from master commit of:
adce73b86fd49d5bbb8884231a26cc7533d400e2

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 <gniibe@fsij.org>
(cherry picked from commit 213379debe5591dad6339aa95aa7282e0de620f9)

Gbp-Pq: Name agent-Fix-error-code-check-from-npth_mutex_init.patch
agent/call-pinentry.c