bug fix
[c11tester.git] / threads.cc
index d17ddabc5535c3d9112fe748522b11f7624b097c..b2ed54d55c99b7bbf939d33513688dcf2e14e7b8 100644 (file)
@@ -245,7 +245,7 @@ int Thread::create_context()
        if (model != NULL)
                makecontext(&context, setup_context, 0);
        else
-               makecontext(&context, thread_startup, 0);
+               makecontext(&context, main_thread_startup, 0);
 #else
        makecontext(&context, thread_startup, 0);
 #endif