From 51387e0b86b1ebb066206e0fdbd3dc3c0afec236 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 5 Sep 2002 20:25:10 +0000 Subject: 2002-09-05 Jakub Jelinek * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in case of failure. --- wcsmbs/wcsmbsload.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wcsmbs/wcsmbsload.c') diff --git a/wcsmbs/wcsmbsload.c b/wcsmbs/wcsmbsload.c index 539b02a..b2ee834 100644 --- a/wcsmbs/wcsmbsload.c +++ b/wcsmbs/wcsmbsload.c @@ -169,6 +169,8 @@ __wcsmbs_load_conv (struct locale_data *new_category) { failed: new_category->private.ctype = &__wcsmbs_gconv_fcts_c; + __libc_lock_unlock (__libc_setlocale_lock); + return; } /* Get name of charset of the locale. */ -- cgit v1.1