diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2015-04-12 13:47:26 +0200 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2015-04-12 13:47:26 +0200 |
commit | ed24db228a7b4f949fb2c648f55a022ba5fcaa04 (patch) | |
tree | fbf87271a50509898e48ee0ca2cdc6d83a3b5ae7 | |
parent | be58bb0bf683c5c15589ecf68367a1fbaa9e0a8f (diff) | |
parent | 65f61fa6047a09347972af1214f45149be311fb6 (diff) | |
download | lanes-ed24db228a7b4f949fb2c648f55a022ba5fcaa04.tar.gz lanes-ed24db228a7b4f949fb2c648f55a022ba5fcaa04.tar.bz2 lanes-ed24db228a7b4f949fb2c648f55a022ba5fcaa04.zip |
Merge pull request #112 from mpeterv/fix-segfault
Fix segfault in LG_lane_new
-rw-r--r-- | src/lanes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lanes.c b/src/lanes.c index 9b95469..8852687 100644 --- a/src/lanes.c +++ b/src/lanes.c | |||
@@ -2419,13 +2419,13 @@ LUAG_FUNC( lane_new) | |||
2419 | lua_sethook( L2, cancel_hook, LUA_MASKCOUNT, cancelstep_idx); | 2419 | lua_sethook( L2, cancel_hook, LUA_MASKCOUNT, cancelstep_idx); |
2420 | } | 2420 | } |
2421 | 2421 | ||
2422 | STACK_END( L, 1); | ||
2423 | STACK_END( L2, 1 + nargs); | ||
2424 | |||
2422 | DEBUGSPEW_CODE( fprintf( stderr, INDENT_BEGIN "lane_new: launching thread\n" INDENT_END)); | 2425 | DEBUGSPEW_CODE( fprintf( stderr, INDENT_BEGIN "lane_new: launching thread\n" INDENT_END)); |
2423 | THREAD_CREATE( &s->thread, lane_main, s, priority); | 2426 | THREAD_CREATE( &s->thread, lane_main, s, priority); |
2424 | 2427 | ||
2425 | DEBUGSPEW_CODE( -- U->debugspew_indent_depth); | 2428 | DEBUGSPEW_CODE( -- U->debugspew_indent_depth); |
2426 | |||
2427 | STACK_END( L, 1); | ||
2428 | STACK_END( L2, 1 + nargs); | ||
2429 | return 1; | 2429 | return 1; |
2430 | } | 2430 | } |
2431 | 2431 | ||