1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

fix scm_gc_strdup invocation

* libguile/i18n.c (get_current_locale): Fix scm_gc_strdup invocation.
This commit is contained in:
Andy Wingo 2011-08-29 22:20:39 +02:00
parent 406524ea98
commit 0b4f77192d

View file

@ -508,7 +508,7 @@ get_current_locale (SCM *result)
current_locale = setlocale (LC_ALL, NULL);
if (current_locale != NULL)
c_locale->locale_name = scm_gc_strdup (current_locale);
c_locale->locale_name = scm_gc_strdup (current_locale, "locale");
else
err = EINVAL;