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)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 10 Sep 2018 00:16:50 +0000 (09:16 +0900)
commitadce73b86fd49d5bbb8884231a26cc7533d400e2
treefbc8fe91e9520299edd82baf093d4c515cdae6ee
parentbee65edfbc8cc2c369e5941cc9d1a01a0519b388
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 <gniibe@fsij.org>
agent/call-pinentry.c