aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <bnt period germain arrobase gmail period com>2014-04-24 09:34:05 +0200
committerBenoit Germain <bnt period germain arrobase gmail period com>2014-04-24 09:34:05 +0200
commitd528fdd4e3db2d10e6b4c42180c657087d7bdae0 (patch)
treea294995eb185c20ec4df6017a3eb7c63338b0add
parent510a7e5eab268c9724c46a3f16264fc2d0510856 (diff)
downloadlanes-d528fdd4e3db2d10e6b4c42180c657087d7bdae0.tar.gz
lanes-d528fdd4e3db2d10e6b4c42180c657087d7bdae0.tar.bz2
lanes-d528fdd4e3db2d10e6b4c42180c657087d7bdae0.zip
Fix undefined returned value by linda:send()
-rw-r--r--src/lanes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lanes.c b/src/lanes.c
index 61344f5..abda889 100644
--- a/src/lanes.c
+++ b/src/lanes.c
@@ -454,7 +454,7 @@ static void check_key_types( lua_State* L, int start_, int end_)
454LUAG_FUNC( linda_send) 454LUAG_FUNC( linda_send)
455{ 455{
456 struct s_Linda* linda = lua_toLinda( L, 1); 456 struct s_Linda* linda = lua_toLinda( L, 1);
457 bool_t ret; 457 bool_t ret = FALSE;
458 enum e_cancel_request cancel = CANCEL_NONE; 458 enum e_cancel_request cancel = CANCEL_NONE;
459 int pushed; 459 int pushed;
460 time_d timeout = -1.0; 460 time_d timeout = -1.0;
@@ -525,7 +525,6 @@ LUAG_FUNC( linda_send)
525 pushed = keeper_call( linda->U, KL, KEEPER_API( send), L, linda, key_i); 525 pushed = keeper_call( linda->U, KL, KEEPER_API( send), L, linda, key_i);
526 if( pushed < 0) 526 if( pushed < 0)
527 { 527 {
528 ret = FALSE;
529 break; 528 break;
530 } 529 }
531 ASSERT_L( pushed == 1); 530 ASSERT_L( pushed == 1);