From d528fdd4e3db2d10e6b4c42180c657087d7bdae0 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 24 Apr 2014 09:34:05 +0200 Subject: Fix undefined returned value by linda:send() --- src/lanes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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_) LUAG_FUNC( linda_send) { struct s_Linda* linda = lua_toLinda( L, 1); - bool_t ret; + bool_t ret = FALSE; enum e_cancel_request cancel = CANCEL_NONE; int pushed; time_d timeout = -1.0; @@ -525,7 +525,6 @@ LUAG_FUNC( linda_send) pushed = keeper_call( linda->U, KL, KEEPER_API( send), L, linda, key_i); if( pushed < 0) { - ret = FALSE; break; } ASSERT_L( pushed == 1); -- cgit v1.2.3-55-g6feb