git-thrd_current
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 10 Sep 2022 22:05:13 +0000 (23:05 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sat, 10 Sep 2022 22:05:13 +0000 (23:05 +0100)
===================================================================

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-thrd_current.diff

sysdeps/htl/thrd_current.c

index eecb86af85aa57636b6fa7d6937e8561a2bffcca..dbd318cb42140297831f43e143cbe5dc65c5c9ed 100644 (file)
@@ -24,7 +24,7 @@
 thrd_t
 thrd_current (void)
 {
-  if (__pthread_threads)
+  if (&__pthread_threads && __pthread_threads)
     return (thrd_t) __pthread_self ();
 
   return (thrd_t) 0;