]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_dl_allocate_tls_storage): Fix reversed __builtin_expect expectation.
authorUlrich Drepper <drepper@redhat.com>
Thu, 6 Mar 2003 06:40:43 +0000 (06:40 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 6 Mar 2003 06:40:43 +0000 (06:40 +0000)
sysdeps/generic/dl-tls.c

index 5ec7249e34a56ef3b48ad4d6102e90f70dee2a49..19cf0aa0722a4b13828be9507ef0270d74e98686 100644 (file)
@@ -294,7 +294,7 @@ _dl_allocate_tls_storage (void)
 
   /* Allocate a correctly aligned chunk of memory.  */
   result = __libc_memalign (GL(dl_tls_static_align), size);
-  if (__builtin_expect (result != NULL, 0))
+  if (__builtin_expect (result != NULL, 1))
     {
       /* Allocate the DTV.  */
       void *allocated = result;