[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Initialize __libc_setlocale_lock (#523380)



We need to initialize __libc_setlocale_lock so loader links properly.
---
 loader2/wcstubs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader2/wcstubs.c b/loader2/wcstubs.c
index a6fdb5c..9859a63 100644
--- a/loader2/wcstubs.c
+++ b/loader2/wcstubs.c
@@ -104,4 +104,4 @@ const size_t _nl_category_name_sizes[] = {
 /* avoid bringing in glibc's setlocale.o - we want to use our
    fake setlocale() */
 typedef pthread_mutex_t __libc_lock_t;
-__libc_lock_t __libc_setlocale_lock;
+__libc_lock_t __libc_setlocale_lock = { 0 };
-- 
1.7.2.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]