core: Support non-thread-safe getenv.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 27 Feb 2018 09:43:40 +0000 (18:43 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 27 Feb 2018 09:43:40 +0000 (18:43 +0900)
commit59fe3f26c1ca0fba16f76738cd05aaf80fb735ef
treee5940dcf290a6c7af06d795b9a088b89b62bef83
parentc58f61e92226c4a03f216f5d07bdc5479ce8a2d9
core: Support non-thread-safe getenv.

* src/get-env.c (_gpgme_getenv): Use gpgrt_lock_lock
and gpgrt_lock_unlock to protect call of getnev.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
src/get-env.c