diff options
author | Mark H Weaver <mhw@netris.org> | 2014-08-13 22:47:32 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2014-08-13 22:47:32 -0400 |
commit | cfefef6bd96294b373104e85d80bc3f4f3fb482b (patch) | |
tree | c38a28ef0e5c0f2ad055d73b7bddc42955783be6 /libguile/load.c | |
parent | 7c848fe5724666edf667e753b5c828c21748fe31 (diff) | |
download | guile-cfefef6bd96294b373104e85d80bc3f4f3fb482b.tar.gz |
Copy the result from 'nl_langinfo' before it can be overwritten.
Based on a patch by Eli Zaretskii <eliz@gnu.org>.
* libguile/i18n.c (copy_string_or_null): New static function.
(scm_nl_langinfo): Use 'copy_string_or_null' to copy the result from
'nl_langinfo' and 'nl_langinfo_l' before the next call and before
releasing the locale mutex.
Diffstat (limited to 'libguile/load.c')
0 files changed, 0 insertions, 0 deletions