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>
Sun, 30 Sep 2018 16:40:42 +0000 (17:40 +0100)
commitd0d901dca72b44f808507b5df00abf855540c1b3
tree7d73110c7af97288bbf8aa2fa161047acb5e63c7
parentf270b958ac7eab607912f7953ac69f9a9e49b1e7
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