about summary refs log tree commit diff stats
path: root/src/libtools/threads.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-04-09 17:19:23 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-09 17:19:23 +0200
commit25c532610b748f0bd59878242b4cdccebd6dbf1e (patch)
tree5f58efb4e49526b13b0d3f5bb12707a5d8ab88cc /src/libtools/threads.c
parentfcfd90b86fc5328c6c5c61e2921416c3cc8adba2 (diff)
downloadbox64-25c532610b748f0bd59878242b4cdccebd6dbf1e.tar.gz
box64-25c532610b748f0bd59878242b4cdccebd6dbf1e.zip
Fixed a warning
Diffstat (limited to 'src/libtools/threads.c')
-rwxr-xr-xsrc/libtools/threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c
index ce53d9d9..82f558f4 100755
--- a/src/libtools/threads.c
+++ b/src/libtools/threads.c
@@ -257,7 +257,7 @@ typedef struct aligned_attr_s {
 pthread_attr_t* getAlignedAttrWithInit(pthread_attr_t* attr, int init)
 {
 	if(!attr)
-		return;
+		return attr;
 	aligned_attr_t* at = (aligned_attr_t*)attr;
 	if(init && at->sign==SIGN_ATTR)
 		return at->at;