소스 검색

core/rthreads.h: fix missing return

S-P Chan 1 년 전
부모
커밋
1a2993ca37
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/rthreads.h

+ 1 - 1
src/core/rthreads.h

@@ -49,7 +49,7 @@ static void *run_threadP(_thread_proto fn, void *arg)
 
 	return ret;
 #else
-        fn(arg);
+        return fn(arg);
 #endif /* USE_TLS */
 }
 #endif