2002-09-05 Jakub Jelinek <jakub@redhat.com>

* wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
        case of failure.
This commit is contained in:
Roland McGrath 2002-09-05 20:25:10 +00:00
parent a1e56cd10a
commit 51387e0b86
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2002-09-05 Jakub Jelinek <jakub@redhat.com>
* wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
case of failure.
2002-09-04 Bruno Haible <bruno@clisp.org>
* sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,

View file

@ -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. */