about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtools')
-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;