about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-03 16:15:15 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-03 16:15:15 -0400
commit7fd3995282db788e33f1bfd7eea95b480d45c804 (patch)
treeec3e3f210f8023c1e760ec669233a6725d8539ac /src
parent7e795ca7edfb2b952abe6a839e84a94420ff8a90 (diff)
downloadmusl-7fd3995282db788e33f1bfd7eea95b480d45c804.tar.gz
musl-7fd3995282db788e33f1bfd7eea95b480d45c804.tar.xz
musl-7fd3995282db788e33f1bfd7eea95b480d45c804.zip
pthread_create need not set errno
Diffstat (limited to 'src')
-rw-r--r--src/thread/pthread_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
index cdf36ff2..284b45a0 100644
--- a/src/thread/pthread_create.c
+++ b/src/thread/pthread_create.c
@@ -195,7 +195,7 @@ int pthread_create(pthread_t *res, const pthread_attr_t *attr, void *(*entry)(vo
 	unsigned char *map, *stack, *tsd;
 	static const pthread_attr_t default_attr;
 
-	if (!self) return errno = ENOSYS;
+	if (!self) return ENOSYS;
 	if (!init && ++init) init_threads();
 
 	if (!attr) attr = &default_attr;