about summary refs log tree commit diff
path: root/stdlib/fmtmsg.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2012-01-16 09:03:20 -0500
committerUlrich Drepper <drepper@gmail.com>2012-01-16 09:03:20 -0500
commit400aa020ea599b4319670a1cea7028930aeab588 (patch)
tree63a2fbf11faaf49a39433c2aa61c9f6bbd4d4af9 /stdlib/fmtmsg.c
parente0a309cf2a59042718fa95f97c5c35da33e61650 (diff)
downloadglibc-400aa020ea599b4319670a1cea7028930aeab588.tar.gz
glibc-400aa020ea599b4319670a1cea7028930aeab588.tar.xz
glibc-400aa020ea599b4319670a1cea7028930aeab588.zip
Fix locking problem in fmtmsg
Diffstat (limited to 'stdlib/fmtmsg.c')
-rw-r--r--stdlib/fmtmsg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/stdlib/fmtmsg.c b/stdlib/fmtmsg.c
index 8ee06bfd06..d187bb21b0 100644
--- a/stdlib/fmtmsg.c
+++ b/stdlib/fmtmsg.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 1997,1999-2003,2005,2006,2011 Free Software Foundation, Inc.
+/* Copyright (C) 1997,1999-2003,2005,2006,2011,2012
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -280,6 +281,8 @@ init (void)
 
 	  sevlevel_var = end + (*end == ':' ? 1 : 0);
 	}
+
+      __libc_lock_unlock (lock);
     }
 }